BsonCodec

medeia.codec.BsonCodec
See theBsonCodec companion object
trait BsonCodec[A] extends BsonEncoder[A] with BsonDecoder[A]

Attributes

Companion:
object
Graph
Supertypes
trait BsonDecoder[A]
trait BsonEncoder[A]
class Object
trait Matchable
class Any
Known subtypes

Members list

Concise view

Value members

Concrete methods

def iemap[B](f: A => Either[String, B])(g: B => A): BsonCodec[B]
def imap[B](f: A => B)(g: B => A): BsonCodec[B]

Inherited methods

def contramap[B](f: B => A): BsonEncoder[B]

Attributes

Inherited from:
BsonEncoder
def decode(bson: BsonValue): EitherNec[BsonDecoderError, A]

Attributes

Inherited from:
BsonDecoder
def defaultValue: Option[A]

Attributes

Inherited from:
BsonDecoder
def emap[B](f: A => Either[String, B]): BsonDecoder[B]

Attributes

Inherited from:
BsonDecoder
def encode(value: A): BsonValue

Attributes

Inherited from:
BsonEncoder
def map[B](f: A => B): BsonDecoder[B]

Attributes

Inherited from:
BsonDecoder