Struct bson::oid::ObjectId [] [src]

pub struct ObjectId { /* fields omitted */ }

A wrapper around raw 12-byte ObjectId representations.

Methods

impl ObjectId
[src]

Generates a new ObjectID, represented in bytes. See the docs for more information.

Constructs a new ObjectId wrapper around the raw byte representation.

Creates an ObjectID using a 12-byte (24-char) hexadecimal string.

Creates a dummy ObjectId with a specific generation time. This method should only be used to do range queries on a field containing ObjectId instances.

Returns the raw byte representation of an ObjectId.

Retrieves the timestamp (seconds since epoch) from an ObjectId.

Retrieves the machine id associated with an ObjectId.

Retrieves the process id associated with an ObjectId.

Retrieves the increment counter from an ObjectId.

Convert the objectId to hex representation.

Trait Implementations

impl Clone for ObjectId
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for ObjectId
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl PartialOrd for ObjectId
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Eq for ObjectId
[src]

impl Ord for ObjectId
[src]

This method returns an Ordering between self and other. Read more

impl Hash for ObjectId
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.

impl Display for ObjectId
[src]

Formats the value using the given formatter.

impl Debug for ObjectId
[src]

Formats the value using the given formatter.

impl Serialize for ObjectId
[src]

Serialize this value into the given Serde serializer. Read more

impl Deserialize for ObjectId
[src]

Deserialize this value from the given Serde deserializer. Read more