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

pub struct ObjectId { /* fields omitted */ }

A wrapper around raw 12-byte ObjectId representations.

Methods

impl ObjectId
[src]

[src]

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

[src]

Constructs a new ObjectId wrapper around the raw byte representation.

[src]

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

[src]

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.

[src]

Returns the raw byte representation of an ObjectId.

[src]

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

[src]

Retrieves the machine id associated with an ObjectId.

[src]

Retrieves the process id associated with an ObjectId.

[src]

Retrieves the increment counter from an ObjectId.

[src]

Convert the objectId to hex representation.

Trait Implementations

impl Clone for ObjectId
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for ObjectId
[src]

[src]

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

[src]

This method tests for !=.

impl PartialOrd for ObjectId
[src]

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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]

[src]

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

1.22.0
[src]

Compares and returns the maximum of two values. Read more

1.22.0
[src]

Compares and returns the minimum of two values. Read more

impl Hash for ObjectId
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Display for ObjectId
[src]

[src]

Formats the value using the given formatter. Read more

impl Debug for ObjectId
[src]

[src]

Formats the value using the given formatter.

impl Serialize for ObjectId
[src]

[src]

Serialize this value into the given Serde serializer. Read more

impl<'de> Deserialize<'de> for ObjectId
[src]

[src]

Deserialize this value from the given Serde deserializer. Read more