[][src]Struct amadeus::data::Time

pub struct Time { /* fields omitted */ }

Implementations

impl Time[src]

pub fn new(
    hour: u8,
    minute: u8,
    second: u8,
    nanosecond: u32,
    timezone: Timezone
) -> Option<Time>
[src]

Create a TimeWithoutTimezone from hour, minute, second and nanosecond.

The nanosecond part can exceed 1,000,000,000 in order to represent the leap second.

Returns None on invalid hour, minute, second and/or nanosecond.

pub fn from_seconds(
    seconds: u32,
    nanosecond: u32,
    timezone: Timezone
) -> Option<Time>
[src]

Create a TimeWithoutTimezone from the number of seconds since midnight and nanosecond.

The nanosecond part can exceed 1,000,000,000 in order to represent the leap second.

Returns None on invalid number of seconds and/or nanosecond.

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 without_timezone(&self) -> TimeWithoutTimezone[src]

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

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

Trait Implementations

impl AmadeusOrd for Time[src]

impl Clone for Time[src]

impl Copy for Time[src]

impl Data for Time[src]

type Vec = Vec<Time>

type DynamicType = ()

impl Data for Time[src]

impl Debug for Time[src]

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

impl Display for Time[src]

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

impl DowncastFrom<Value> for Time[src]

impl Eq for Time[src]

impl From<Time> for Value[src]

impl FromStr for Time[src]

type Err = ParseDateError

The associated error which can be returned from parsing.

impl Hash for Time[src]

impl Ord for Time[src]

impl ParquetData for Time[src]

Corresponds to the UTC Time logical type.

type Schema = TimeSchema

type Reader = impl Reader<Item = Time>

type Predicate = Predicate

impl PartialEq<Time> for Time[src]

impl PartialEq<Time> for Value[src]

impl PartialOrd<Time> for Time[src]

impl PostgresData for Time[src]

impl SerdeData for Time[src]

impl Serialize for Time[src]

Auto Trait Implementations

impl RefUnwindSafe for Time

impl Send for Time

impl Sync for Time

impl Unpin for Time

impl UnwindSafe for Time

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> 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, 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> 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[src]

type Meta = Concrete

Type of metadata for type.

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

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