toBSON

Converts a POD struct to a BSON object.

  1. auto ref toBSON(BSON ob, bool ignoreDefaults)
  2. auto toBSON(Type instance, bool ignoreDefaults)
    toBSON
    (
    Type
    )
    (,
    bool ignoreDefaults = true
    )

Meta