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

pub struct Duration {
    pub seconds: i64,
    pub nanos: i32,
    // some fields omitted
}

Fields

seconds: i64nanos: i32

Methods

impl Duration[src]

pub fn new() -> Duration[src]

pub fn default_instance() -> &'static Duration[src]

pub fn clear_seconds(&mut self)[src]

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

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

pub fn clear_nanos(&mut self)[src]

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

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

Trait Implementations

impl Message for Duration[src]

impl MessageStatic for Duration[src]

impl Clear for Duration[src]

impl ProtobufValue for Duration[src]

impl Default for Duration[src]

impl Sync for Duration[src]

impl Clone for Duration[src]

impl PartialEq<Duration> for Duration[src]

impl Debug for Duration[src]

Auto Trait Implementations

impl Send for Duration

impl Unpin for Duration

impl UnwindSafe for Duration

impl !RefUnwindSafe for Duration

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]