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