Enum22

sealed case class Enum22[A1 <: Z, A2 <: Z, A3 <: Z, A4 <: Z, A5 <: Z, A6 <: Z, A7 <: Z, A8 <: Z, A9 <: Z, A10 <: Z, A11 <: Z, A12 <: Z, A13 <: Z, A14 <: Z, A15 <: Z, A16 <: Z, A17 <: Z, A18 <: Z, A19 <: Z, A20 <: Z, A21 <: Z, A22 <: Z, Z](id: TypeId, case1: Case[A1, Z], case2: Case[A2, Z], case3: Case[A3, Z], case4: Case[A4, Z], case5: Case[A5, Z], case6: Case[A6, Z], case7: Case[A7, Z], case8: Case[A8, Z], case9: Case[A9, Z], case10: Case[A10, Z], case11: Case[A11, Z], case12: Case[A12, Z], case13: Case[A13, Z], case14: Case[A14, Z], case15: Case[A15, Z], case16: Case[A16, Z], case17: Case[A17, Z], case18: Case[A18, Z], case19: Case[A19, Z], case20: Case[A20, Z], case21: Case[A21, Z], case22: Case[A22, Z], annotations: Chunk[Any]) extends Enum[Z]
trait Serializable
trait Product
trait Equals
trait Enum[Z]
trait Schema[Z]
class Object
trait Matchable
class Any
Enum22[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22, Z]

Type members

Types

override type Accessors[Lens[_, _, _], Prism[_, _, _], Traversal[_, _]] = (Prism[String, Z, A1], Prism[String, Z, A2], Prism[String, Z, A3], Prism[String, Z, A4], Prism[String, Z, A5], Prism[String, Z, A6], Prism[String, Z, A7], Prism[String, Z, A8], Prism[String, Z, A9], Prism[String, Z, A10], Prism[String, Z, A11], Prism[String, Z, A12], Prism[String, Z, A13], Prism[String, Z, A14], Prism[String, Z, A15], Prism[String, Z, A16], Prism[String, Z, A17], Prism[String, Z, A18], Prism[String, Z, A19], Prism[String, Z, A20], Prism[String, Z, A21], Prism[String, Z, A22])

Value members

Concrete methods

override def annotate(annotation: Any): Enum22[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21, A22, Z]
Definition Classes
override def defaultValue: Either[String, Z]
Definition Classes
override def makeAccessors(b: AccessorBuilder): (Prism[String, Z, A1], Prism[String, Z, A2], Prism[String, Z, A3], Prism[String, Z, A4], Prism[String, Z, A5], Prism[String, Z, A6], Prism[String, Z, A7], Prism[String, Z, A8], Prism[String, Z, A9], Prism[String, Z, A10], Prism[String, Z, A11], Prism[String, Z, A12], Prism[String, Z, A13], Prism[String, Z, A14], Prism[String, Z, A15], Prism[String, Z, A16], Prism[String, Z, A17], Prism[String, Z, A18], Prism[String, Z, A19], Prism[String, Z, A20], Prism[String, Z, A21], Prism[String, Z, A22])
Definition Classes
override def structureWithAnnotations: ListMap[String, (Schema[_], Chunk[Any])]
Definition Classes

Inherited methods

def <*>[B](that: Schema[B]): Schema[(Z, B)]

A symbolic operator for zip.

A symbolic operator for zip.

Inherited from:
Schema
def <+>[B](that: Schema[B]): Schema[Either[Z, B]]

A symbolic operator for orElseEither.

A symbolic operator for orElseEither.

Inherited from:
Schema
def ?: Schema[Option[Z]]

A symbolic operator for optional.

A symbolic operator for optional.

Inherited from:
Schema
Inherited from:
Schema
def coerce[B](newSchema: Schema[B]): Either[String, Schema[B]]

Convert to Schema[B] iff B and A are homomorphic.

Convert to Schema[B] iff B and A are homomorphic.

This can be used to e.g convert between a case class and it's "generic" representation as a ListMap[String,_]

Inherited from:
Schema
def diff(thisValue: Z, thatValue: Z, differ: Option[Differ[Z]]): Diff[Z]

Performs a diff between thisValue and thatValue. See zio.schema.Differ for details on the default diff algorithms.

Performs a diff between thisValue and thatValue. See zio.schema.Differ for details on the default diff algorithms.

A custom zio.schema.Differ can be supplied if the default behavior is not acceptable.

Inherited from:
Schema
def fromDynamic(value: DynamicValue): Either[String, Z]
Inherited from:
Schema
def migrate[B](newSchema: Schema[B]): Either[String, Z => Either[String, B]]

Generate a homomorphism from A to B iff A and B are homomorphic

Generate a homomorphism from A to B iff A and B are homomorphic

Inherited from:
Schema
def optional: Schema[Option[Z]]

Returns a new schema that modifies the type produced by this schema to be optional.

Returns a new schema that modifies the type produced by this schema to be optional.

Inherited from:
Schema
def orElseEither[B](that: Schema[B]): Schema[Either[Z, B]]

Returns a new schema that combines this schema and the specified schema together, modeling their either composition.

Returns a new schema that combines this schema and the specified schema together, modeling their either composition.

Inherited from:
Schema
def ordering: Ordering[Z]
Inherited from:
Schema
def patch(oldValue: Z, diff: Diff[Z]): Either[String, Z]

Patch value with a Diff.

Patch value with a Diff.

Inherited from:
Schema
def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product
def repeated: Schema[Chunk[Z]]
Inherited from:
Schema
Inherited from:
Schema
def structure: ListMap[String, Schema[_]]
Inherited from:
Enum
def toDynamic(value: Z): DynamicValue
Inherited from:
Schema
Inherited from:
Schema
def transform[B](f: Z => B, g: B => Z)(implicit loc: SourceLocation): Schema[B]

Transforms this Schema[A] into a Schema[B], by supplying two functions that can transform between A and B, without possibility of failure.

Transforms this Schema[A] into a Schema[B], by supplying two functions that can transform between A and B, without possibility of failure.

Inherited from:
Schema
def transformOrFail[B](f: Z => Either[String, B], g: B => Either[String, Z])(implicit loc: SourceLocation): Schema[B]

Transforms this Schema[A] into a Schema[B], by supplying two functions that can transform between A and B (possibly failing in some cases).

Transforms this Schema[A] into a Schema[B], by supplying two functions that can transform between A and B (possibly failing in some cases).

Inherited from:
Schema
def zip[B](that: Schema[B]): Schema[(Z, B)]

Returns a new schema that combines this schema and the specified schema together, modeling their tuple composition.

Returns a new schema that combines this schema and the specified schema together, modeling their tuple composition.

Inherited from:
Schema