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

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.

Type parameters

A

the type of the value represented as BSON

Attributes

inline def reader[A]: BSONDocumentReader[A]

Creates a BSONDocumentReader for type A.

Creates a BSONDocumentReader for type A.

Type parameters

A

the type of the value represented as BSON

Attributes

inline def writer[A]: BSONDocumentWriter[A]

Creates a BSONDocumentWriter for type A.

Creates a BSONDocumentWriter for type A.

Type parameters

A

the type of the value represented as BSON

Attributes

Concrete fields

val config: Aux[Opts]