[][src]Struct amadeus_types::Time

pub struct Time(_);

Methods

impl Time[src]

pub fn from_millis(millis: u32) -> Option<Self>[src]

Create a Time from the number of milliseconds since midnight

pub fn from_micros(micros: u64) -> Option<Self>[src]

Create a Time from the number of microseconds since midnight

pub fn from_nanos(nanos: u64) -> Option<Self>[src]

Create a Time from the number of nanoseconds since midnight

pub fn as_millis(&self) -> u32[src]

Get the number of milliseconds since midnight

pub fn as_micros(&self) -> u64[src]

Get the number of microseconds since midnight

pub fn as_nanos(&self) -> u64[src]

Get the number of microseconds since midnight

Trait Implementations

impl DowncastImpl<Value> for Time[src]

impl Eq for Time[src]

impl Clone for Time[src]

impl PartialOrd<Time> for Time[src]

impl Ord for Time[src]

impl PartialEq<Time> for Time[src]

impl PartialEq<Time> for Value[src]

impl From<NaiveTime> for Time[src]

impl From<Time> for Value[src]

impl Copy for Time[src]

impl Hash for Time[src]

impl Display for Time[src]

impl Debug for Time[src]

impl TryFrom<Time> for NaiveTime[src]

type Error = ()

The type returned in the event of a conversion error.

impl Serialize for Time[src]

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

Auto Trait Implementations

impl Unpin for Time

impl Sync for Time

impl Send for Time

impl UnwindSafe for Time

impl RefUnwindSafe for Time

Blanket Implementations

impl<A, B> Downcast<A> for B where
    A: DowncastImpl<B>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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]