[][src]Struct amadeus::data::DateTime

pub struct DateTime { /* fields omitted */ }

Implementations

impl DateTime[src]

pub fn new(
    year: i64,
    month: u8,
    day: u8,
    hour: u8,
    minute: u8,
    second: u8,
    nanosecond: u32,
    timezone: Timezone
) -> Option<DateTime>
[src]

pub fn from_date_time(date: Date, time: Time) -> Option<DateTime>[src]

Create a DateTimeWithoutTimezone from a DateWithoutTimezone and TimeWithoutTimezone.

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

pub fn time(&self) -> TimeWithoutTimezone[src]

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

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

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

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

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

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

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

pub fn truncate_minutes(&self, minutes: u8) -> DateTime[src]

Trait Implementations

impl AmadeusOrd for DateTime[src]

impl Clone for DateTime[src]

impl Copy for DateTime[src]

impl Data for DateTime[src]

impl Data for DateTime[src]

impl Debug for DateTime[src]

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

impl Display for DateTime[src]

Corresponds to RFC 3339 and ISO 8601 string %Y-%m-%dT%H:%M:%S%.9f%:z

impl DowncastFrom<Value> for DateTime[src]

impl Eq for DateTime[src]

impl From<DateTime> for Value[src]

impl FromStr for DateTime[src]

type Err = ParseDateError

The associated error which can be returned from parsing.

impl Hash for DateTime[src]

impl Ord for DateTime[src]

impl ParquetData for DateTime[src]

Corresponds to the UTC DateTime logical type.

type Schema = DateTimeSchema

type Reader = impl Reader<Item = DateTime>

type Predicate = Predicate

impl PartialEq<DateTime> for Value[src]

impl PartialEq<DateTime> for DateTime[src]

impl PartialOrd<DateTime> for DateTime[src]

impl PostgresData for DateTime[src]

impl SerdeData for DateTime[src]

impl Serialize for DateTime[src]

impl StructuralEq for DateTime[src]

impl StructuralPartialEq for DateTime[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any + Serialize + Deserialize
[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> Debug for T where
    T: Debug + Serialize + Deserialize + ?Sized
[src]

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

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

impl<T> Display for T where
    T: Display + Serialize + Deserialize + ?Sized
[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> 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> Same<T> for T

type Output = T

Should always be Self

impl<T> Sealed<T> for T where
    T: ?Sized

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

impl<T> Serialize for T where
    T: Serialize + ?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<T> Type for T where
    T: ?Sized
[src]

impl<T> Type for T[src]

type Meta = Concrete

Type of metadata for type.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,