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]
.
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.
Tries to produce a BSON value from an instance of T
.
Tries to produce a BSON value from an instance of T
.
(variantBSONDocumentWriter: StringAdd).self
(variantBSONDocumentWriter: StringFormat).self
(variantBSONDocumentWriter: ArrowAssoc[VariantBSONDocumentWriter[T]]).x
(Since version 2.10.0) Use leftOfArrow
instead
(variantBSONDocumentWriter: Ensuring[VariantBSONDocumentWriter[T]]).x
(Since version 2.10.0) Use resultOfEnsuring
instead