BsonKeyCodec

medeia.codec.BsonKeyCodec
See theBsonKeyCodec companion object
trait BsonKeyCodec[A] extends BsonKeyEncoder[A] with BsonKeyDecoder[A]

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Concrete methods

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

Inherited methods

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

Attributes

Inherited from:
BsonKeyEncoder
def decode(key: String): EitherNec[BsonDecoderError, A]

Attributes

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

Attributes

Inherited from:
BsonKeyDecoder
def encode(value: A): String

Attributes

Inherited from:
BsonKeyEncoder
def map[B](f: A => B): BsonKeyDecoder[B]

Attributes

Inherited from:
BsonKeyDecoder