sealed case class Enum7[A1, A2, A3, A4, A5, A6, A7, Z](id: TypeId, case1: Case[Z, A1], case2: Case[Z, A2], case3: Case[Z, A3], case4: Case[Z, A4], case5: Case[Z, A5], case6: Case[Z, A6], case7: Case[Z, A7], annotations: Chunk[Any] = Chunk.empty) extends Enum[Z] with Product with Serializable
- Self Type
- Enum7[A1, A2, A3, A4, A5, A6, A7, Z]
- Alphabetic
- By Inheritance
- Enum7
- Serializable
- Serializable
- Product
- Equals
- Enum
- Schema
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
Type Members
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
<*>[B](that: Schema[B]): Schema[(Z, B)]
A symbolic operator for zip.
-
def
<+>[B](that: Schema[B]): Schema[scala.util.Either[Z, B]]
A symbolic operator for orElseEither.
A symbolic operator for orElseEither.
- Definition Classes
- Schema
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
?: Schema[Option[Z]]
A symbolic operator for optional.
-
def
annotate(annotation: Any): Enum7[A1, A2, A3, A4, A5, A6, A7, Z]
Returns a new schema that with
annotation
-
val
annotations: Chunk[Any]
Chunk of annotations for this schema
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
ast: MetaSchema
- Definition Classes
- Schema
- val case1: Case[Z, A1]
- val case2: Case[Z, A2]
- val case3: Case[Z, A3]
- val case4: Case[Z, A4]
- val case5: Case[Z, A5]
- val case6: Case[Z, A6]
- val case7: Case[Z, A7]
-
def
caseOf(z: Z): Option[Case[Z, _]]
- Definition Classes
- Enum
-
def
caseOf(id: String): Option[Case[Z, _]]
- Definition Classes
- Enum
- def cases: Chunk[Case[Z, _]]
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
coerce[B](newSchema: Schema[B]): scala.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,_]
- Definition Classes
- Schema
-
def
defaultValue: scala.util.Either[String, Z]
The default value for a
Schema
of typeA
. -
def
diff(thisValue: Z, thatValue: Z): Patch[Z]
Performs a diff between thisValue and thatValue.
Performs a diff between thisValue and thatValue. See zio.schema.Differ for details on the default diff algorithms.
- Definition Classes
- Schema
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
fromDynamic(value: DynamicValue): scala.util.Either[String, Z]
- Definition Classes
- Schema
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val id: TypeId
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def makeAccessors(b: AccessorBuilder): (Prism[Case.id.type, Z, A1], Prism[Case.id.type, Z, A2], Prism[Case.id.type, Z, A3], Prism[Case.id.type, Z, A4], Prism[Case.id.type, Z, A5], Prism[Case.id.type, Z, A6], Prism[Case.id.type, Z, A7])
-
def
migrate[B](newSchema: Schema[B]): scala.Either[String, (Z) ⇒ scala.util.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
- Definition Classes
- Schema
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
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.
- Definition Classes
- Schema
-
def
orElseEither[B](that: Schema[B]): Schema[scala.util.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.
- Definition Classes
- Schema
-
def
ordering: Ordering[Z]
- Definition Classes
- Schema
-
def
patch(oldValue: Z, diff: Patch[Z]): scala.util.Either[String, Z]
Patch value with a Patch.
Patch value with a Patch.
- Definition Classes
- Schema
-
def
repeated: Schema[Chunk[Z]]
- Definition Classes
- Schema
-
def
serializable: Schema[Schema[Z]]
- Definition Classes
- Schema
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toDynamic(value: Z): DynamicValue
- Definition Classes
- Schema
-
def
transform[B](f: (Z) ⇒ B, g: (B) ⇒ Z)(implicit loc: SourceLocation): Schema[B]
Transforms this
Schema[A]
into aSchema[B]
, by supplying two functions that can transform betweenA
andB
, without possibility of failure.Transforms this
Schema[A]
into aSchema[B]
, by supplying two functions that can transform betweenA
andB
, without possibility of failure.- Definition Classes
- Schema
-
def
transformOrFail[B](f: (Z) ⇒ scala.util.Either[String, B], g: (B) ⇒ scala.util.Either[String, Z])(implicit loc: SourceLocation): Schema[B]
Transforms this
Schema[A]
into aSchema[B]
, by supplying two functions that can transform betweenA
andB
(possibly failing in some cases).Transforms this
Schema[A]
into aSchema[B]
, by supplying two functions that can transform betweenA
andB
(possibly failing in some cases).- Definition Classes
- Schema
-
def
validate(value: Z)(implicit schema: Schema[Z]): Chunk[ValidationError]
- Definition Classes
- Schema
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
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.
- Definition Classes
- Schema