EnumSchema

oxygen.schema.PlainTextSchema.EnumSchema
trait EnumSchema[A] extends PlainTextSchema[A]

Attributes

Graph
Supertypes
trait PlainTextSchema[A]
trait SchemaLike[A]
class Object
trait Matchable
class Any
Known subtypes

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 Object
trait Matchable
class Any

Inherited types

final override type S[a] = PlainTextSchema[a]

Attributes

Inherited from:
PlainTextSchema

Value members

Inherited methods

final override def transform[B](ab: A => B, ba: B => A)(using newTypeTag: TypeTag[B]): PlainTextSchema[B]

Attributes

Definition Classes
Inherited from:
PlainTextSchema
final def transformAttempt[B](ab: A => B, ba: B => A)(using newTypeTag: TypeTag[B]): S[B]

Attributes

Inherited from:
SchemaLike
final def transformAttemptObscure[B](ab: A => B, ba: B => A)(using newTypeTag: TypeTag[B]): S[B]

Attributes

Inherited from:
SchemaLike
final def transformOption[B](ab: A => Option[B], ba: B => A)(using newTypeTag: TypeTag[B]): S[B]

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

Inherited and Abstract methods

def decode(string: String): Either[String, A]

Attributes

Inherited from:
SchemaLike
def encode(value: A): String

Attributes

Inherited from:
SchemaLike

Abstract fields

val encodedValues: Seq[String]

Inherited and Abstract fields

val typeTag: TypeTag[A]

Attributes

Inherited from:
SchemaLike