bson/value

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 DateTime, see birl!

pub type Value {
  Min
  Max
  Null
  JS(String)
  Str(String)
  Int32(Int)
  Int64(Int)
  Double(Float)
  Boolean(Bool)
  Binary(Binary)
  Timestamp(Int)
  Array(List(Value))
  ObjectId(ObjectId)
  DateTime(DateTime)
  Regex(#(String, String))
  Document(List(#(String, Value)))
}

Constructors

  • Min
  • Max
  • Null
  • JS(String)
  • Str(String)
  • Int32(Int)
  • Int64(Int)
  • Double(Float)
  • Boolean(Bool)
  • Binary(Binary)
  • Timestamp(Int)
  • Array(List(Value))
  • ObjectId(ObjectId)
  • DateTime(DateTime)
  • Regex(#(String, String))
  • Document(List(#(String, Value)))
Search Document