pub struct DateOverrides {
pub year: Option<i64>,
pub month: Option<i64>,
pub day: Option<i64>,
pub week: Option<i64>,
pub day_of_week: Option<i64>,
pub ordinal_day: Option<i64>,
pub quarter: Option<i64>,
pub day_of_quarter: Option<i64>,
}Expand description
Component overrides for date-from-value projection (Temporal3). A field
left None is taken from the base date. The active construction mode is
selected by which override is present (week ▸ ordinal ▸ quarter ▸ calendar).
Fields§
§year: Option<i64>Calendar / ISO-week / ordinal / quarter year.
month: Option<i64>Calendar month (1–12).
day: Option<i64>Calendar day of month.
week: Option<i64>ISO week of year (selects ISO-week mode).
day_of_week: Option<i64>ISO day of week (1 = Monday … 7 = Sunday).
ordinal_day: Option<i64>Day of year (selects ordinal mode).
quarter: Option<i64>Quarter 1–4 (selects quarter mode).
day_of_quarter: Option<i64>1-based day within the quarter.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DateOverrides
impl RefUnwindSafe for DateOverrides
impl Send for DateOverrides
impl Sync for DateOverrides
impl Unpin for DateOverrides
impl UnsafeUnpin for DateOverrides
impl UnwindSafe for DateOverrides
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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