#[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
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”.
Implementations§
Source§impl DateFields
 
impl DateFields
Sourcepub const VALUES: &'static [DateFields]
 
pub const VALUES: &'static [DateFields]
All values of this enumeration.
Sourcepub fn is_calendar_period(self) -> bool
 
pub fn is_calendar_period(self) -> bool
Returns whether this DateFields variant represents a CalendarPeriodFieldSet.
Trait Implementations§
Source§impl Clone for DateFields
 
impl Clone for DateFields
Source§fn clone(&self) -> DateFields
 
fn clone(&self) -> DateFields
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DateFields
 
impl Debug for DateFields
Source§impl PartialEq for DateFields
 
impl PartialEq for DateFields
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
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>
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>
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