Codec

cats.xml.codec.Codec
See theCodec companion object
case class Codec[T](decoder: Decoder[T], encoder: Encoder[T])

Isomorphism

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Abstract methods

def decodeCursorResult(cursorResult: Result[Xml]): Result[T]
Implicitly added by codecToDecoder
def encode(t: T): Xml
Implicitly added by codecToEncoder

Concrete methods

def contramap[U](f: U => T): Encoder[U]
Implicitly added by codecToEncoder
def decode(xml: Xml): Result[T]
Implicitly added by codecToDecoder
def decode(xml: Xml): Result[T]
def emap[U](f: T => Either[DecoderFailure, U]): Decoder[U]
Implicitly added by codecToDecoder
def emap[E, U](f: T => Either[E, U])(implicit ctx: E <:< Throwable): Decoder[U]
Implicitly added by codecToDecoder
def emapOption[U](f: T => Option[U]): Decoder[U]
Implicitly added by codecToDecoder
def emapTry[U](f: T => Try[U]): Decoder[U]
Implicitly added by codecToDecoder
def encode(t: T): Xml
def flatMap[U](f: T => Decoder[U]): Decoder[U]
Implicitly added by codecToDecoder
def flatMapF[U](f: T => Result[U]): Decoder[U]
Implicitly added by codecToDecoder
def map[U](f: T => U): Decoder[U]
Implicitly added by codecToDecoder
def or(other: Decoder[_ <: T]): Decoder[T]
Implicitly added by codecToDecoder

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product