[][src]Struct protobuf::well_known_types::Timestamp

pub struct Timestamp {
    pub seconds: i64,
    pub nanos: i32,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
}

Fields

seconds: i64nanos: i32unknown_fields: UnknownFieldscached_size: CachedSize

Methods

impl Timestamp[src]

pub fn new() -> Timestamp[src]

pub fn get_seconds(&self) -> i64[src]

pub fn clear_seconds(&mut self)[src]

pub fn set_seconds(&mut self, v: i64)[src]

pub fn get_nanos(&self) -> i32[src]

pub fn clear_nanos(&mut self)[src]

pub fn set_nanos(&mut self, v: i32)[src]

Trait Implementations

impl Clear for Timestamp[src]

impl Message for Timestamp[src]

impl ProtobufValue for Timestamp[src]

impl Default for Timestamp[src]

impl<'a> Default for &'a Timestamp[src]

impl Clone for Timestamp[src]

impl PartialEq<Timestamp> for Timestamp[src]

impl Debug for Timestamp[src]

impl Serialize for Timestamp[src]

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

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> From<T> for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

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

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

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

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