[][src]Struct amadeus_types::DateWithoutTimezone

pub struct DateWithoutTimezone(_);

Implementations

impl DateWithoutTimezone[src]

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

pub fn from_ordinal(year: i64, day: u16) -> 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 with_timezone(self, timezone: Timezone) -> Date[src]

pub fn from_days(days: i64) -> 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 DateWithoutTimezone[src]

impl Clone for DateWithoutTimezone[src]

impl Copy for DateWithoutTimezone[src]

impl Data for DateWithoutTimezone[src]

type Vec = Vec<Self>

type DynamicType = ()

impl Debug for DateWithoutTimezone[src]

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

impl Display for DateWithoutTimezone[src]

impl DowncastFrom<Value> for DateWithoutTimezone[src]

impl Eq for DateWithoutTimezone[src]

impl From<DateWithoutTimezone> for Value[src]

impl FromStr for DateWithoutTimezone[src]

type Err = ParseDateError

The associated error which can be returned from parsing.

impl Hash for DateWithoutTimezone[src]

impl Ord for DateWithoutTimezone[src]

impl PartialEq<DateWithoutTimezone> for DateWithoutTimezone[src]

impl PartialEq<DateWithoutTimezone> for Value[src]

impl PartialOrd<DateWithoutTimezone> for DateWithoutTimezone[src]

impl Serialize for DateWithoutTimezone[src]

impl StructuralEq for DateWithoutTimezone[src]

impl StructuralPartialEq for DateWithoutTimezone[src]

Auto Trait Implementations

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

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

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>,