WithOptions

reactivemongo.api.bson.Macros$.WithOptions
final class WithOptions[Opts <: MacroOptions](val config: Aux[Opts])

Macros for generating BSONReader and BSONWriter at compile time, with given options.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Constructors

def this()

Concrete methods

inline def handler[A]: BSONDocumentHandler[A]

Creates a BSONDocumentHandler for type A.

Creates a BSONDocumentHandler for type A.

Attributes

A

the type of the value represented as BSON

inline def reader[A]: BSONDocumentReader[A]

Creates a BSONDocumentReader for type A.

Creates a BSONDocumentReader for type A.

Attributes

A

the type of the value represented as BSON

inline def writer[A]: BSONDocumentWriter[A]

Creates a BSONDocumentWriter for type A.

Creates a BSONDocumentWriter for type A.

Attributes

A

the type of the value represented as BSON

Concrete fields

val config: Aux[Opts]