[][src]Struct amadeus::prelude::data::TimeWithoutTimezone

pub struct TimeWithoutTimezone(_);

Methods

impl TimeWithoutTimezone[src]

pub fn new(
    hour: u8,
    minute: u8,
    second: u8,
    nanosecond: u32
) -> Option<TimeWithoutTimezone>
[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
) -> Option<TimeWithoutTimezone>
[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 with_timezone(self, timezone: Timezone) -> Time[src]

Trait Implementations

impl PostgresData for TimeWithoutTimezone[src]

impl FromStr for TimeWithoutTimezone[src]

type Err = ParseDateError

The associated error which can be returned from parsing.

impl Clone for TimeWithoutTimezone[src]

impl Eq for TimeWithoutTimezone[src]

impl Ord for TimeWithoutTimezone[src]

impl PartialOrd<TimeWithoutTimezone> for TimeWithoutTimezone[src]

impl Serialize for TimeWithoutTimezone[src]

impl DowncastImpl<Value> for TimeWithoutTimezone[src]

impl From<TimeWithoutTimezone> for Value[src]

impl Debug for TimeWithoutTimezone[src]

impl Display for TimeWithoutTimezone[src]

impl Hash for TimeWithoutTimezone[src]

impl Copy for TimeWithoutTimezone[src]

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

impl PartialEq<TimeWithoutTimezone> for Value[src]

impl PartialEq<TimeWithoutTimezone> for TimeWithoutTimezone[src]

impl SerdeData for TimeWithoutTimezone[src]

impl Data for TimeWithoutTimezone[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<T> for T[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> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<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]

impl<T> Same<T> for T

type Output = T

Should always be Self

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

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

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

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

impl<T> FromCast<T> for T

impl<T, U> Cast<U> for T where
    U: FromCast<T>, 

impl<T> FromBits<T> for T

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

impl<T> Any for T where
    T: Any + Serialize + Deserialize
[src]

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

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

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

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

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

impl<T> Type for T[src]

type Meta = Concrete

Type of metadata for type.

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

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

impl<'a, T> TryFrom<&'a str> for T where
    T: FromStr

type Err = <T as FromStr>::Err

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err