bson/types

Types

pub type Binary {
  MD5(MD5)
  UUID(UUID)
  Custom(Custom)
  Generic(Generic)
}

Constructors

  • MD5(MD5)
  • UUID(UUID)
  • Custom(Custom)
  • Generic(Generic)
pub type Kind {
  Kind(code: BitString)
}

Constructors

  • Kind(code: BitString)
pub type SubKind {
  SubKind(code: BitString)
}

Constructors

  • SubKind(code: BitString)
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 array: Kind = Kind(code: <<0x04>>)
pub const binary: Kind = Kind(code: <<0x05>>)
pub const boolean: Kind = Kind(code: <<0x08>>)
pub const datetime: Kind = Kind(code: <<0x09>>)
pub const decimal128: Kind = Kind(code: <<0x13>>)
pub const document: Kind = Kind(code: <<0x03>>)
pub const double: Kind = Kind(code: <<0x01>>)
pub const generic: SubKind = SubKind(code: <<0x0>>)
pub const int32: Kind = Kind(code: <<0x10>>)
pub const int32_max: Int = 2_147_483_647
pub const int32_min: Int = -2_147_483_648
pub const int64: Kind = Kind(code: <<0x12>>)
pub const int64_max: Int = 9_223_372_036_854_775_807
pub const int64_min: Int = -9_223_372_036_854_775_808
pub const js: Kind = Kind(code: <<0x0D>>)
pub const max: Kind = Kind(code: <<0x7F>>)
pub const md5: SubKind = SubKind(code: <<0x5>>)
pub const min: Kind = Kind(code: <<0xFF>>)
pub const null: Kind = Kind(code: <<0x0A>>)
pub const object_id: Kind = Kind(code: <<0x07>>)
pub const regex: Kind = Kind(code: <<0x0B>>)
pub const string: Kind = Kind(code: <<0x02>>)
pub const timestamp: Kind = Kind(code: <<0x11>>)
pub const uuid: SubKind = SubKind(code: <<0x4>>)
Search Document