vibe.d beta banner
get vibe.d
0.7.30

Struct BsonObjectID

Represents a BSON object id (Bson.Type.binData).

struct BsonObjectID;

Constructors

Constructors

NameDescription
thisConstructs a new object ID from the given raw byte array.

Properties

Properties

NameTypeDescription
timeStamp[get]std.datetime.SysTimeExtracts the time/date portion of the object ID.
valid[get]boolReturns true for any non-zero ID.

Methods

Methods

NameDescription
createDateIDCreates a pseudo object ID that matches the given date.
fromStringCreates an on object ID from a string in standard hexa-decimal form.
generateGenerates a unique object ID.
opCast
opCmpAllows for relational comparison of different IDs.
toStringConverts the ID to its standard hexa-decimal string representation.

Aliases

Aliases

NameDescription
fromHexStringCreates an on object ID from a string in standard hexa-decimal form.
Authors

Sönke Ludwig

Copyright

© 2012-2015 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.