Struct amadeus_types::TimeWithoutTimezone [−][src]
pub struct TimeWithoutTimezone(_);
Implementations
impl TimeWithoutTimezone
[src]
impl TimeWithoutTimezone
[src]pub fn new(hour: u8, minute: u8, second: u8, nanosecond: u32) -> Option<Self>
[src]
pub fn new(hour: u8, minute: u8, second: u8, nanosecond: u32) -> Option<Self>
[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<Self>
[src]
pub fn from_seconds(seconds: u32, nanosecond: u32) -> Option<Self>
[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]
pub fn truncate_minutes(&self, minutes: u8) -> Self
[src]
Trait Implementations
impl AmadeusOrd for TimeWithoutTimezone
[src]
impl AmadeusOrd for TimeWithoutTimezone
[src]fn amadeus_cmp(&self, other: &Self) -> Ordering
[src]
impl Clone for TimeWithoutTimezone
[src]
impl Clone for TimeWithoutTimezone
[src]fn clone(&self) -> TimeWithoutTimezone
[src]
fn clone(&self) -> TimeWithoutTimezone
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Data for TimeWithoutTimezone
[src]
impl Data for TimeWithoutTimezone
[src]impl Debug for TimeWithoutTimezone
[src]
impl Debug for TimeWithoutTimezone
[src]impl<'de> Deserialize<'de> for TimeWithoutTimezone
[src]
impl<'de> Deserialize<'de> for TimeWithoutTimezone
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl Display for TimeWithoutTimezone
[src]
impl Display for TimeWithoutTimezone
[src]impl DowncastFrom<Value> for TimeWithoutTimezone
[src]
impl DowncastFrom<Value> for TimeWithoutTimezone
[src]fn downcast_from(self_: Value) -> Result<Self, DowncastError>
[src]
impl From<TimeWithoutTimezone> for Value
[src]
impl From<TimeWithoutTimezone> for Value
[src]fn from(value: TimeWithoutTimezone) -> Self
[src]
fn from(value: TimeWithoutTimezone) -> Self
[src]Performs the conversion.
impl FromStr for TimeWithoutTimezone
[src]
impl FromStr for TimeWithoutTimezone
[src]impl Hash for TimeWithoutTimezone
[src]
impl Hash for TimeWithoutTimezone
[src]impl Ord for TimeWithoutTimezone
[src]
impl Ord for TimeWithoutTimezone
[src]impl PartialEq<TimeWithoutTimezone> for TimeWithoutTimezone
[src]
impl PartialEq<TimeWithoutTimezone> for TimeWithoutTimezone
[src]fn eq(&self, other: &TimeWithoutTimezone) -> bool
[src]
fn eq(&self, other: &TimeWithoutTimezone) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &TimeWithoutTimezone) -> bool
[src]
fn ne(&self, other: &TimeWithoutTimezone) -> bool
[src]This method tests for !=
.
impl PartialEq<TimeWithoutTimezone> for Value
[src]
impl PartialEq<TimeWithoutTimezone> for Value
[src]impl PartialOrd<TimeWithoutTimezone> for TimeWithoutTimezone
[src]
impl PartialOrd<TimeWithoutTimezone> for TimeWithoutTimezone
[src]fn partial_cmp(&self, other: &TimeWithoutTimezone) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &TimeWithoutTimezone) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Serialize for TimeWithoutTimezone
[src]
impl Serialize for TimeWithoutTimezone
[src]impl Copy for TimeWithoutTimezone
[src]
impl Eq for TimeWithoutTimezone
[src]
impl StructuralEq for TimeWithoutTimezone
[src]
impl StructuralPartialEq for TimeWithoutTimezone
[src]
Auto Trait Implementations
impl RefUnwindSafe for TimeWithoutTimezone
impl Send for TimeWithoutTimezone
impl Sync for TimeWithoutTimezone
impl Unpin for TimeWithoutTimezone
impl UnwindSafe for TimeWithoutTimezone
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<A, B> Downcast<A> for B where
A: DowncastFrom<B>,
[src]
impl<A, B> Downcast<A> for B where
A: DowncastFrom<B>,
[src]pub fn downcast(Self) -> Result<A, DowncastError>
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
pub fn equivalent(&self, key: &K) -> bool
[src]Compare self to key
and return true
if they are equal.
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> ProcessSend for T where
T: Send + Serialize + for<'de> Deserialize<'de> + ?Sized,
[src]
T: Send + Serialize + for<'de> Deserialize<'de> + ?Sized,