pub struct DateWithoutTimezone(/* private fields */);Implementations§
Source§impl DateWithoutTimezone
impl DateWithoutTimezone
pub fn new(year: i64, month: u8, day: u8) -> Option<Self>
pub fn from_ordinal(year: i64, day: u16) -> Option<Self>
pub fn year(&self) -> i64
pub fn month(&self) -> u8
pub fn day(&self) -> u8
pub fn ordinal(&self) -> u16
pub fn with_timezone(self, timezone: Timezone) -> Date
Trait Implementations§
Source§impl AmadeusOrd for DateWithoutTimezone
impl AmadeusOrd for DateWithoutTimezone
fn amadeus_cmp(&self, other: &Self) -> Ordering
Source§impl Clone for DateWithoutTimezone
impl Clone for DateWithoutTimezone
Source§fn clone(&self) -> DateWithoutTimezone
fn clone(&self) -> DateWithoutTimezone
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Data for DateWithoutTimezone
impl Data for DateWithoutTimezone
type Vec = Vec<DateWithoutTimezone>
type DynamicType = ()
fn new_vec(_type: Self::DynamicType) -> Self::Vec
Source§impl Debug for DateWithoutTimezone
impl Debug for DateWithoutTimezone
Source§impl<'de> Deserialize<'de> for DateWithoutTimezone
impl<'de> Deserialize<'de> for DateWithoutTimezone
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for DateWithoutTimezone
impl Display for DateWithoutTimezone
Source§impl DowncastFrom<Value> for DateWithoutTimezone
impl DowncastFrom<Value> for DateWithoutTimezone
fn downcast_from(self_: Value) -> Result<Self, DowncastError>
Source§impl From<DateWithoutTimezone> for Value
impl From<DateWithoutTimezone> for Value
Source§fn from(value: DateWithoutTimezone) -> Self
fn from(value: DateWithoutTimezone) -> Self
Converts to this type from the input type.
Source§impl FromStr for DateWithoutTimezone
impl FromStr for DateWithoutTimezone
Source§impl Hash for DateWithoutTimezone
impl Hash for DateWithoutTimezone
Source§impl Ord for DateWithoutTimezone
impl Ord for DateWithoutTimezone
Source§fn cmp(&self, other: &DateWithoutTimezone) -> Ordering
fn cmp(&self, other: &DateWithoutTimezone) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq<DateWithoutTimezone> for Value
impl PartialEq<DateWithoutTimezone> for Value
Source§impl PartialEq for DateWithoutTimezone
impl PartialEq for DateWithoutTimezone
Source§impl PartialOrd for DateWithoutTimezone
impl PartialOrd for DateWithoutTimezone
Source§impl Serialize for DateWithoutTimezone
impl Serialize for DateWithoutTimezone
impl Copy for DateWithoutTimezone
impl Eq for DateWithoutTimezone
impl StructuralPartialEq for DateWithoutTimezone
Auto Trait Implementations§
impl Freeze for DateWithoutTimezone
impl RefUnwindSafe for DateWithoutTimezone
impl Send for DateWithoutTimezone
impl Sync for DateWithoutTimezone
impl Unpin for DateWithoutTimezone
impl UnwindSafe for DateWithoutTimezone
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<A, B> Downcast<A> for Bwhere
A: DowncastFrom<B>,
impl<A, B> Downcast<A> for Bwhere
A: DowncastFrom<B>,
fn downcast(self) -> Result<A, DowncastError>
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more