Packages

t

reactivemongo.bson

VariantBSONDocumentWriter

trait VariantBSONDocumentWriter[-T] extends VariantBSONWriter[T, BSONDocument]

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. VariantBSONDocumentWriter
  2. VariantBSONWriter
  3. AnyRef
  4. Any
Implicitly
  1. by valueProducer
  2. by element2Producer
  3. by any2stringadd
  4. by StringFormat
  5. by Ensuring
  6. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def write(t: T): BSONDocument

    Writes an instance of T as a BSON value.

    Writes an instance of T as a BSON value.

    This method may throw exceptions at runtime. If used outside a reader, one should consider writeTry(bson: B): Try[T] or writeOpt(bson: B): Option[T].

    Definition Classes
    VariantBSONWriter

Concrete Value Members

  1. def writeOpt(t: T): Option[BSONDocument]

    Tries to produce a BSON value from an instance of T, returns None if an error occurred.

    Tries to produce a BSON value from an instance of T, returns None if an error occurred.

    Definition Classes
    VariantBSONWriter
  2. def writeTry(t: T): Try[BSONDocument]

    Tries to produce a BSON value from an instance of T.

    Tries to produce a BSON value from an instance of T.

    Definition Classes
    VariantBSONWriter