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

Be careful when using this code, it's not being 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]

[src]

Formats the value using the given formatter.

impl Eq for TimeStamp
[src]

impl PartialEq for TimeStamp
[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 Clone for TimeStamp
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

[src]

Deserialize this value from the given Serde deserializer. Read more