type RowCodec[A] = Codec[Seq[String], A, DecodeError, codecs.type]

Aggregates a RowEncoder and a RowDecoder.

The sole purpose of this type class is to provide a convenient way to create encoders and decoders. It should not be used directly for anything but instance creation - in particular, it should never be used in a context bound or expected as an implicit parameter.

Source
package.scala
See also

kantan.codecs.Codec

Linear Supertypes
Encoder[Seq[String], A, codecs.type], Decoder[Seq[String], A, DecodeError, codecs.type], Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RowCodec
  2. Encoder
  3. Decoder
  4. Serializable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def decode(e: E): Either[F, D]
    Definition Classes
    Decoder
  2. abstract def encode(d: D): E
    Definition Classes
    Encoder

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def andThen[FF, DD](f: (Either[F, D]) => Either[FF, DD]): Decoder[E, DD, FF, T]
    Definition Classes
    Decoder
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
  7. def collect[DD](f: PartialFunction[D, DD])(implicit t: IsError[F]): Decoder[E, DD, F, T]
    Definition Classes
    Decoder
    Annotations
    @SuppressWarnings()
  8. def contramap[DD](f: (DD) => D): Encoder[E, DD, T]
    Definition Classes
    Encoder
  9. def contramapEncoded[EE](f: (EE) => E): Decoder[EE, D, F, T]
    Definition Classes
    Decoder
  10. def emap[DD](f: (D) => Either[F, DD]): Decoder[E, DD, F, T]
    Definition Classes
    Decoder
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  13. def filter(f: (D) => Boolean)(implicit t: IsError[F]): Decoder[E, D, F, T]
    Definition Classes
    Decoder
  14. def flatMap[DD](f: (D) => Decoder[E, DD, F, T]): Decoder[E, DD, F, T]
    Definition Classes
    Decoder
    Annotations
    @SuppressWarnings()
  15. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  16. def handleErrorWith(f: (F) => Decoder[E, D, F, T]): Decoder[E, D, F, T]
    Definition Classes
    Decoder
  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  18. def imap[DD](f: (D) => DD)(g: (DD) => D): Codec[E, DD, F, T]
    Definition Classes
    Codec
  19. def imapEncoded[EE](f: (E) => EE)(g: (EE) => E): Codec[EE, D, F, T]
    Definition Classes
    Codec
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. def leftMap[FF](f: (F) => FF): Codec[E, D, FF, T]
    Definition Classes
    Codec → Decoder
  22. def map[DD](f: (D) => DD): Decoder[E, DD, F, T]
    Definition Classes
    Decoder
  23. def mapEncoded[EE](f: (E) => EE): Encoder[EE, D, T]
    Definition Classes
    Encoder
  24. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  26. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  27. def orElse[DD >: D](d: Decoder[E, DD, F, T]): Decoder[E, DD, F, T]
    Definition Classes
    Decoder
  28. def product[DD](decoder: Decoder[E, DD, F, T]): Decoder[E, (D, DD), F, T]
    Definition Classes
    Decoder
  29. def recover[DD >: D](pf: PartialFunction[F, DD]): Decoder[E, DD, F, T]
    Definition Classes
    Decoder
  30. def recoverWith[DD >: D, FF >: F](pf: PartialFunction[F, Either[FF, DD]]): Decoder[E, DD, FF, T]
    Definition Classes
    Decoder
  31. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  32. def tag[TT]: Codec[E, D, F, TT]
    Definition Classes
    Codec → Encoder → Decoder
    Annotations
    @SuppressWarnings()
  33. def toString(): String
    Definition Classes
    AnyRef → Any
  34. def unsafeDecode(e: E): D
    Definition Classes
    Decoder
    Annotations
    @SuppressWarnings()
  35. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  36. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  37. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

  2. def mapError[FF](f: (F) => FF): Codec[E, D, FF, T]
    Definition Classes
    Codec → Decoder
    Annotations
    @deprecated
    Deprecated

    (Since version 0.2.1) Use leftMap instead

  3. def mapResult[DD](f: (D) => Either[F, DD]): Decoder[E, DD, F, T]
    Definition Classes
    Decoder
    Annotations
    @deprecated
    Deprecated

    (Since version 0.2.0) Use emap instead

Inherited from Encoder[Seq[String], A, codecs.type]

Inherited from Decoder[Seq[String], A, DecodeError, codecs.type]

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped