[][src]Struct mongodb::oid::ObjectId

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]

Performs copy-assignment from source. Read more

impl Serialize for ObjectId
[src]

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

impl From<ObjectId> for Bson
[src]

impl Hash for ObjectId
[src]

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

impl Eq for ObjectId
[src]

impl PartialEq<ObjectId> for ObjectId
[src]

impl Display for ObjectId
[src]

impl Ord for ObjectId
[src]

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl PartialOrd<ObjectId> for ObjectId
[src]

impl Debug for ObjectId
[src]

Auto Trait Implementations

impl Send for ObjectId

impl Sync for ObjectId

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 

impl<Q, K> Equivalent for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> Same for T

Should always be Self