pub struct FiscalCalendarSchemaConfig {
pub enabled: bool,
pub calendar_type: String,
pub year_start_month: Option<u8>,
pub year_start_day: Option<u8>,
pub four_four_five: Option<FourFourFiveSchemaConfig>,
}Expand description
Fiscal calendar configuration.
Supports calendar year, custom year start, 4-4-5 retail calendar, and 13-period calendars.
Fields§
§enabled: boolEnable non-standard fiscal calendar.
calendar_type: StringFiscal calendar type: “calendar_year”, “custom”, “four_four_five”, “thirteen_period”.
year_start_month: Option<u8>Month the fiscal year starts (1-12). Used for custom year start.
year_start_day: Option<u8>Day the fiscal year starts (1-31). Used for custom year start.
four_four_five: Option<FourFourFiveSchemaConfig>4-4-5 calendar configuration (if calendar_type is “four_four_five”).
Trait Implementations§
Source§impl Clone for FiscalCalendarSchemaConfig
impl Clone for FiscalCalendarSchemaConfig
Source§fn clone(&self) -> FiscalCalendarSchemaConfig
fn clone(&self) -> FiscalCalendarSchemaConfig
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 Debug for FiscalCalendarSchemaConfig
impl Debug for FiscalCalendarSchemaConfig
Source§impl Default for FiscalCalendarSchemaConfig
impl Default for FiscalCalendarSchemaConfig
Source§fn default() -> FiscalCalendarSchemaConfig
fn default() -> FiscalCalendarSchemaConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FiscalCalendarSchemaConfig
impl<'de> Deserialize<'de> for FiscalCalendarSchemaConfig
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
Auto Trait Implementations§
impl Freeze for FiscalCalendarSchemaConfig
impl RefUnwindSafe for FiscalCalendarSchemaConfig
impl Send for FiscalCalendarSchemaConfig
impl Sync for FiscalCalendarSchemaConfig
impl Unpin for FiscalCalendarSchemaConfig
impl UnwindSafe for FiscalCalendarSchemaConfig
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