Companion¶
object Companion
Functions¶
document¶
fun document(writer: BsonFieldWriter.() -> Unit): BsonDeclaration
hex¶
fun hex(@Language
(value = "HEXDUMP") hex: String): BsonDeclaration
json¶
fun json(@Language
(value = "MongoDB-JSON") json: String): BsonDeclaration
serialize¶
fun serialize(
obj: Any,
type: KType,
klass: KClass<*>
): BsonDeclaration
inline fun <T : Any> serialize(obj: T): BsonDeclaration
verify¶
fun verify(name: String, block: BsonDocumentReader.() -> Unit): BsonDeclaration