EnumSchema
oxygen.schema.PlainTextSchema.EnumSchema
final case class EnumSchema[A](typeTag: TypeTag[A], values: Seq[A], encodeValue: A => String, caseSensitive: Boolean) extends PlainTextSchema[A]
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait PlainTextSchema[A]trait SchemaLike[A]class Objecttrait Matchableclass AnyShow all
Members list
Type members
Inherited classlikes
object unsafe
There are times when you only care about encoding or decoding, and not the other. This makes that possible. If you try to do the thing you explicitly decided not to implement, you will get a runtime exception.
There are times when you only care about encoding or decoding, and not the other. This makes that possible. If you try to do the thing you explicitly decided not to implement, you will get a runtime exception.
Attributes
- Inherited from:
- SchemaLike
- Supertypes
-
class Objecttrait Matchableclass Any
Inherited types
Attributes
- Inherited from:
- PlainTextSchema
Value members
Concrete methods
Attributes
- Definition Classes
Attributes
- Definition Classes
Inherited methods
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
final override def transform[B](ab: A => B, ba: B => A)(using newTypeTag: TypeTag[B]): PlainTextSchema[B]
Attributes
- Definition Classes
- Inherited from:
- PlainTextSchema
Attributes
- Inherited from:
- SchemaLike
Attributes
- Inherited from:
- SchemaLike
Attributes
- Inherited from:
- SchemaLike
final def transformOptionObscure[B](ab: A => Option[B], ba: B => A)(using newTypeTag: TypeTag[B]): S[B]
Attributes
- Inherited from:
- SchemaLike
final override def transformOrFail[B](ab: A => Either[String, B], ba: B => A)(using newTypeTag: TypeTag[B]): PlainTextSchema[B]
Attributes
- Definition Classes
- Inherited from:
- PlainTextSchema
In this article