[−][src]Struct amadeus_types::DateWithoutTimezone
Implementations
impl DateWithoutTimezone
[src]
pub fn new(year: i64, month: u8, day: u8) -> Option<Self>
[src]
pub fn from_ordinal(year: i64, day: u16) -> Option<Self>
[src]
pub fn year(&self) -> i64
[src]
pub fn month(&self) -> u8
[src]
pub fn day(&self) -> u8
[src]
pub fn ordinal(&self) -> u16
[src]
pub fn with_timezone(self, timezone: Timezone) -> Date
[src]
pub fn from_days(days: i64) -> Option<Self>
[src]
Create a DateWithoutTimezone from the number of days since the Unix epoch
pub fn as_days(&self) -> i64
[src]
Get the number of days since the Unix epoch
Trait Implementations
impl AmadeusOrd for DateWithoutTimezone
[src]
fn amadeus_cmp(&self, other: &Self) -> Ordering
[src]
impl Clone for DateWithoutTimezone
[src]
fn clone(&self) -> DateWithoutTimezone
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for DateWithoutTimezone
[src]
impl Data for DateWithoutTimezone
[src]
impl Debug for DateWithoutTimezone
[src]
impl<'de> Deserialize<'de> for DateWithoutTimezone
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Display for DateWithoutTimezone
[src]
impl DowncastFrom<Value> for DateWithoutTimezone
[src]
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
[src]
impl Eq for DateWithoutTimezone
[src]
impl From<DateWithoutTimezone> for Value
[src]
fn from(value: DateWithoutTimezone) -> Self
[src]
impl FromStr for DateWithoutTimezone
[src]
type Err = ParseDateError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl Hash for DateWithoutTimezone
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for DateWithoutTimezone
[src]
fn cmp(&self, other: &DateWithoutTimezone) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<DateWithoutTimezone> for DateWithoutTimezone
[src]
fn eq(&self, other: &DateWithoutTimezone) -> bool
[src]
fn ne(&self, other: &DateWithoutTimezone) -> bool
[src]
impl PartialEq<DateWithoutTimezone> for Value
[src]
fn eq(&self, other: &DateWithoutTimezone) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<DateWithoutTimezone> for DateWithoutTimezone
[src]
fn partial_cmp(&self, other: &DateWithoutTimezone) -> Option<Ordering>
[src]
fn lt(&self, other: &DateWithoutTimezone) -> bool
[src]
fn le(&self, other: &DateWithoutTimezone) -> bool
[src]
fn gt(&self, other: &DateWithoutTimezone) -> bool
[src]
fn ge(&self, other: &DateWithoutTimezone) -> bool
[src]
impl Serialize for DateWithoutTimezone
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for DateWithoutTimezone
[src]
impl StructuralPartialEq for DateWithoutTimezone
[src]
Auto Trait Implementations
impl RefUnwindSafe for DateWithoutTimezone
impl Send for DateWithoutTimezone
impl Sync for DateWithoutTimezone
impl Unpin for DateWithoutTimezone
impl UnwindSafe for DateWithoutTimezone
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> Cast<U> for T where
U: FromCast<T>,
U: FromCast<T>,
fn cast(self) -> U
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<A, B> Downcast<A> for B where
A: DowncastFrom<B>,
[src]
A: DowncastFrom<B>,
fn downcast(Self) -> Result<A, DowncastError>
[src]
impl<T> From<T> for T
[src]
impl<T> FromBits<T> for T
fn from_bits(t: T) -> T
impl<T> FromCast<T> for T
fn from_cast(t: T) -> T
impl<T> IntersectPlusUnionIsPlus for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> IntoBits<U> for T where
U: FromBits<T>,
U: FromBits<T>,
fn into_bits(self) -> U
impl<T> ProcessSend for T where
T: Send + Serialize + for<'de> Deserialize<'de> + ?Sized,
[src]
T: Send + Serialize + for<'de> Deserialize<'de> + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,