#[non_exhaustive]pub enum DateFields {
D,
MD,
YMD,
DE,
MDE,
YMDE,
E,
M,
YM,
Y,
}
Expand description
An enumeration over all possible date and calendar period field sets without options.
This is a builder enum. See builder
.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
D
The day of the month, as in “on the 1st”.
MD
The month and day of the month, as in “January 1st”.
YMD
The year, month, and day of the month, as in “January 1st, 2000”.
DE
The day of the month and day of the week, as in “Saturday 1st”.
MDE
The month, day of the month, and day of the week, as in “Saturday, January 1st”.
YMDE
The year, month, day of the month, and day of the week, as in “Saturday, January 1st, 2000”.
E
The day of the week alone, as in “Saturday”.
M
A standalone month, as in “January”.
YM
A month and year, as in “January 2000”.
Y
A year, as in “2000”.
Trait Implementations§
Source§impl Clone for DateFields
impl Clone for DateFields
Source§fn clone(&self) -> DateFields
fn clone(&self) -> DateFields
Returns a copy 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 Debug for DateFields
impl Debug for DateFields
Source§impl<'de> Deserialize<'de> for DateFields
impl<'de> Deserialize<'de> for DateFields
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DateFields, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DateFields, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DateFields
impl PartialEq for DateFields
Source§impl Serialize for DateFields
impl Serialize for DateFields
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for DateFields
impl Eq for DateFields
impl StructuralPartialEq for DateFields
Auto Trait Implementations§
impl Freeze for DateFields
impl RefUnwindSafe for DateFields
impl Send for DateFields
impl Sync for DateFields
impl Unpin for DateFields
impl UnwindSafe for DateFields
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<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