OneOf

case class OneOf[O, T](mappings: Seq[OneOfMapping[_ <: O]], mapping: Mapping[O, T]) extends Single[T]
trait Serializable
trait Product
trait Equals
trait Single[T]
class Object
trait Matchable
class Any

Value members

Concrete methods

override def map[U](_mapping: Mapping[T, U]): OneOf[O, U]
Definition Classes
override def show: String
Definition Classes

Inherited methods

def and[J, IJ](other: EndpointOutput[J])(implicit concat: Aux[T, J, IJ]): EndpointOutput[IJ]
Inherited from
EndpointOutput
def map[U](f: T => U)(g: U => T): ThisType[U]
Inherited from
EndpointTransput
def mapDecode[U](f: T => DecodeResult[U])(g: U => T): ThisType[U]
Inherited from
EndpointTransput
inline def mapTo[CASE_CLASS <: Product](using mc: ProductOf[CASE_CLASS]): ThisType[CASE_CLASS]
def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product
def validate(v: Validator[T]): ThisType[T]
Inherited from
EndpointTransput