Sequence

zio.blocks.schema.SchemaRepr.Sequence
final case class Sequence(element: SchemaRepr) extends SchemaRepr

A sequence type (list, set, array).

Attributes

Source
SchemaRepr.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait SchemaRepr
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala
override def toString: String

Renders this schema representation as a parseable string.

Renders this schema representation as a parseable string.

Examples:

  • Nominal("Person") → "Person"
  • Primitive("string") → "string"
  • Record(...) → "record { name: string, age: int }"
  • Variant(...) → "variant { Left: int, Right: string }"
  • Sequence(...) → "list(string)"
  • Map(...) → "map(string, int)"
  • Optional(...) → "option(Person)"
  • Wildcard → "_"

Attributes

Definition Classes
SchemaRepr -> Any
Inherited from:
SchemaRepr
Source
SchemaRepr.scala