← ZIO BSON docs

BsonCodec

zio.bson.BsonCodec
See theBsonCodec companion object
final case class BsonCodec[A](encoder: BsonEncoder[A], decoder: BsonDecoder[A])

Attributes

Companion
object
Source
BsonCodec.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def transform[B](to: A => B)(from: B => A): BsonCodec[B]

Attributes

Source
BsonCodec.scala
def transformOrFail[B](to: A => Either[String, B])(from: B => A): BsonCodec[B]

Attributes

Source
BsonCodec.scala

Inherited methods

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala