Struct bson::TimeStamp[][src]

pub struct TimeStamp {
    pub t: u32,
    pub i: u32,
}

TimeStamp representation in struct for serde serialization

Just a helper for convenience

This example is not tested
#[macro_use]
extern crate serde_derive;
extern crate bson;
use bson::TimeStamp;

#[derive(Serialize, Deserialize)]
struct Foo {
    timestamp: TimeStamp,
}

Fields

Trait Implementations

impl Debug for TimeStamp
[src]

Formats the value using the given formatter. Read more

impl Eq for TimeStamp
[src]

impl PartialEq for TimeStamp
[src]

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

This method tests for !=.

impl Clone for TimeStamp
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for TimeStamp
[src]

impl Hash for TimeStamp
[src]

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

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

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

Deserialize this value from the given Serde deserializer. Read more

impl Serialize for TimeStamp
[src]

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

impl Send for TimeStamp

impl Sync for TimeStamp