bson/types
Types
pub type Binary {
MD5(MD5)
UUID(UUID)
Custom(Custom)
Generic(Generic)
}
Constructors
-
MD5(MD5) -
UUID(UUID) -
Custom(Custom) -
Generic(Generic)
if you’re not familiar with type Time, see birl!
pub type Value {
Min
Max
Null
JS(String)
Str(String)
Integer(Int)
Double(Float)
Boolean(Bool)
DateTime(Time)
Binary(Binary)
Timestamp(Int)
Array(List(Value))
ObjectId(ObjectId)
Regex(#(String, String))
Document(List(#(String, Value)))
}
Constructors
-
Min -
Max -
Null -
JS(String) -
Str(String) -
Integer(Int) -
Double(Float) -
Boolean(Bool) -
DateTime(Time) -
Binary(Binary) -
Timestamp(Int) -
Array(List(Value)) -
ObjectId(ObjectId) -
Regex(#(String, String)) -
Document(List(#(String, Value)))
Constants
pub const decimal128: Kind = Kind(code: <<0x13>>)