object Decoder extends Serializable
- Source
- Decoder.scala
- Alphabetic
- By Inheritance
- Decoder
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- implicit def decoderFromExported[E, D, F, T](implicit da: DerivedDecoder[E, D, F, T]): Decoder[E, D, F, T]
- implicit def eitherDecoder[E, D1, D2, F, T](implicit d1: Decoder[E, D1, F, T], d2: Decoder[E, D2, F, T]): Decoder[E, Either[D1, D2], F, T]
Provides a Decoder instance for
Either[A, B]
, provided bothA
andB
have a Decoder instance. - def from[E, D, F, T](f: (E) => Either[F, D]): Decoder[E, D, F, T]
Creates a new Decoder instance that applies the specified function when decoding.
- def fromUnsafe[E, D, F, T](f: (E) => D)(implicit arg0: IsError[F]): Decoder[E, D, F, T]
Turns an unsafe function into a Decoder.
Turns an unsafe function into a Decoder.
The specified function is assumed to throw, and errors will be dealt with properly.
- def oneOf[E, D, F, T](ds: Decoder[E, D, F, T]*)(implicit arg0: IsError[F]): Decoder[E, D, F, T]
Creates a new decoder using all specified values.
Creates a new decoder using all specified values.
The generated decoder will try each of the specified decoders in turn, and return either the first success or, if none is found, the last failure.
- Annotations
- @SuppressWarnings()
- implicit def optionalDecoder[E, D, F, T](implicit arg0: Optional[E], da: Decoder[E, D, F, T]): Decoder[E, Option[D], F, T]