Macros with 'Opts' suffix will take additional options in the form of type parameters that will customize behaviour of the macros during compilation.
import reactivemongo.api.bson.{ BSONDocumentWriter, Macros, MacroOptions }
case class Bar(score: Float)
val w: BSONDocumentWriter[Bar] =
Macros.using[MacroOptions.Default].writer[Bar]
- Companion:
- object
class Object
trait Matchable
class Any
trait Default
trait AutomaticMaterialization
trait DisableWarnings
trait ReadDefaultValues
trait UnionType[Types]
trait Verbose