[][src]Struct amadeus_types::Date

pub struct Date { /* fields omitted */ }

Implementations

impl Date[src]

pub fn new(year: i64, month: u8, day: u8, timezone: Timezone) -> Option<Self>[src]

pub fn from_ordinal(year: i64, day: u16, timezone: Timezone) -> Option<Self>[src]

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

pub fn month(&self) -> u8[src]

pub fn day(&self) -> u8[src]

pub fn ordinal(&self) -> u16[src]

pub fn without_timezone(&self) -> DateWithoutTimezone[src]

pub fn timezone(&self) -> Timezone[src]

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

Create a DateWithoutTimezone 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 AmadeusOrd for Date[src]

impl Clone for Date[src]

impl Copy for Date[src]

impl Data for Date[src]

type Vec = Vec<Self>

type DynamicType = ()

impl Debug for Date[src]

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

impl Display for Date[src]

Corresponds to RFC 3339 and ISO 8601 string %Y-%m-%d%:z

impl DowncastFrom<Value> for Date[src]

impl Eq for Date[src]

impl From<Date> for Value[src]

impl FromStr for Date[src]

type Err = ParseDateError

The associated error which can be returned from parsing.

impl Hash for Date[src]

impl Ord for Date[src]

impl PartialEq<Date> for Date[src]

impl PartialEq<Date> for Value[src]

impl PartialOrd<Date> for Date[src]

impl Serialize for Date[src]

impl StructuralEq for Date[src]

impl StructuralPartialEq for Date[src]

Auto Trait Implementations

impl RefUnwindSafe for Date

impl Send for Date

impl Sync for Date

impl Unpin for Date

impl UnwindSafe for Date

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, U> Cast<U> for T where
    U: FromCast<T>, 

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

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

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

impl<T> FromBits<T> for T

impl<T> FromCast<T> for T

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

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

impl<T, U> IntoBits<U> for T where
    U: FromBits<T>, 

impl<T> ProcessSend for T where
    T: Send + Serialize + for<'de> Deserialize<'de> + ?Sized
[src]

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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<V, T> VZip<V> for T where
    V: MultiLane<T>,