Struct protobuf::well_known_types::Duration[][src]

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

Fields

seconds: i64nanos: i32unknown_fields: UnknownFieldscached_size: CachedSize

Implementations

impl Duration[src]

pub fn new() -> Duration[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 Duration[src]

impl Clone for Duration[src]

impl Debug for Duration[src]

impl Default for Duration[src]

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

impl Message for Duration[src]

impl PartialEq<Duration> for Duration[src]

impl ProtobufValue for Duration[src]

impl StructuralPartialEq for Duration[src]

Auto Trait Implementations

impl RefUnwindSafe for Duration

impl Send for Duration

impl Sync for Duration

impl Unpin for Duration

impl UnwindSafe for Duration

Blanket Implementations

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

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.