[][src]Struct amadeus_types::Date

pub struct Date(_);

Methods

impl Date[src]

pub fn from_days(days: i64) -> Option<Self>[src]

Create a Date from the number of days since the Unix epoch

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

Get the number of days since the Unix epoch

Trait Implementations

impl DowncastImpl<Value> for Date[src]

impl Eq for Date[src]

impl Clone for Date[src]

impl PartialOrd<Date> for Date[src]

impl Ord for Date[src]

impl PartialEq<Date> for Date[src]

impl PartialEq<Date> for Value[src]

impl From<NaiveDate> for Date[src]

impl From<Date> for Value[src]

impl Copy for Date[src]

impl Hash for Date[src]

impl Display for Date[src]

impl Debug for Date[src]

impl TryFrom<Date> for NaiveDate[src]

type Error = ()

The type returned in the event of a conversion error.

impl Serialize for Date[src]

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

Auto Trait Implementations

impl Unpin for Date

impl Sync for Date

impl Send for Date

impl UnwindSafe for Date

impl RefUnwindSafe for Date

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]