Struct amadeus_types::DateTimeWithoutTimezone [−][src]
pub struct DateTimeWithoutTimezone { /* fields omitted */ }
Implementations
impl DateTimeWithoutTimezone
[src]
impl DateTimeWithoutTimezone
[src]pub fn new(
year: i64,
month: u8,
day: u8,
hour: u8,
minute: u8,
second: u8,
nanosecond: u32
) -> Option<Self>
[src]
year: i64,
month: u8,
day: u8,
hour: u8,
minute: u8,
second: u8,
nanosecond: u32
) -> Option<Self>
pub fn from_date_time(
date: DateWithoutTimezone,
time: TimeWithoutTimezone
) -> Option<Self>
[src]
pub fn from_date_time(
date: DateWithoutTimezone,
time: TimeWithoutTimezone
) -> Option<Self>
[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 with_timezone(self, timezone: Timezone) -> DateTime
[src]
pub fn truncate_minutes(&self, minutes: u8) -> Self
[src]
Trait Implementations
impl AmadeusOrd for DateTimeWithoutTimezone
[src]
impl AmadeusOrd for DateTimeWithoutTimezone
[src]fn amadeus_cmp(&self, other: &Self) -> Ordering
[src]
impl Clone for DateTimeWithoutTimezone
[src]
impl Clone for DateTimeWithoutTimezone
[src]fn clone(&self) -> DateTimeWithoutTimezone
[src]
fn clone(&self) -> DateTimeWithoutTimezone
[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 DateTimeWithoutTimezone
[src]
impl Data for DateTimeWithoutTimezone
[src]impl Debug for DateTimeWithoutTimezone
[src]
impl Debug for DateTimeWithoutTimezone
[src]impl<'de> Deserialize<'de> for DateTimeWithoutTimezone
[src]
impl<'de> Deserialize<'de> for DateTimeWithoutTimezone
[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 DateTimeWithoutTimezone
[src]
impl Display for DateTimeWithoutTimezone
[src]impl DowncastFrom<Value> for DateTimeWithoutTimezone
[src]
impl DowncastFrom<Value> for DateTimeWithoutTimezone
[src]fn downcast_from(self_: Value) -> Result<Self, DowncastError>
[src]
impl From<DateTimeWithoutTimezone> for Value
[src]
impl From<DateTimeWithoutTimezone> for Value
[src]fn from(value: DateTimeWithoutTimezone) -> Self
[src]
fn from(value: DateTimeWithoutTimezone) -> Self
[src]Performs the conversion.
impl FromStr for DateTimeWithoutTimezone
[src]
impl FromStr for DateTimeWithoutTimezone
[src]impl Hash for DateTimeWithoutTimezone
[src]
impl Hash for DateTimeWithoutTimezone
[src]impl Ord for DateTimeWithoutTimezone
[src]
impl Ord for DateTimeWithoutTimezone
[src]impl PartialEq<DateTimeWithoutTimezone> for DateTimeWithoutTimezone
[src]
impl PartialEq<DateTimeWithoutTimezone> for DateTimeWithoutTimezone
[src]fn eq(&self, other: &DateTimeWithoutTimezone) -> bool
[src]
fn eq(&self, other: &DateTimeWithoutTimezone) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &DateTimeWithoutTimezone) -> bool
[src]
fn ne(&self, other: &DateTimeWithoutTimezone) -> bool
[src]This method tests for !=
.
impl PartialEq<DateTimeWithoutTimezone> for Value
[src]
impl PartialEq<DateTimeWithoutTimezone> for Value
[src]impl PartialOrd<DateTimeWithoutTimezone> for DateTimeWithoutTimezone
[src]
impl PartialOrd<DateTimeWithoutTimezone> for DateTimeWithoutTimezone
[src]fn partial_cmp(&self, other: &DateTimeWithoutTimezone) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &DateTimeWithoutTimezone) -> 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 DateTimeWithoutTimezone
[src]
impl Serialize for DateTimeWithoutTimezone
[src]impl Copy for DateTimeWithoutTimezone
[src]
impl Eq for DateTimeWithoutTimezone
[src]
impl StructuralEq for DateTimeWithoutTimezone
[src]
impl StructuralPartialEq for DateTimeWithoutTimezone
[src]
Auto Trait Implementations
impl RefUnwindSafe for DateTimeWithoutTimezone
impl Send for DateTimeWithoutTimezone
impl Sync for DateTimeWithoutTimezone
impl Unpin for DateTimeWithoutTimezone
impl UnwindSafe for DateTimeWithoutTimezone
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,