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
t: u32
i: u32
Trait Implementations
impl Debug for TimeStamp[src]
impl Eq for TimeStamp[src]
impl PartialEq for TimeStamp[src]
fn eq(&self, __arg_0: &TimeStamp) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &TimeStamp) -> bool[src]
This method tests for !=.
impl Clone for TimeStamp[src]
fn clone(&self) -> TimeStamp[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl<'de> Deserialize<'de> for TimeStamp[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>, [src]
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more