pub struct DateConfig {
pub date: Option<String>,
pub date_time: Option<String>,
pub month: Option<String>,
pub value: DatePatterns,
pub filter: DatePatterns,
pub date_format_solo: Option<String>,
pub date_format: Option<String>,
}Expand description
Where the date patterns of an application are configured: one per kind, one per purpose, and two legacy settings used when nothing else is set.
Fields§
§date: Option<String>Display pattern for dates.
date_time: Option<String>Display pattern for date-times.
month: Option<String>Display pattern for month/year.
value: DatePatternsPatterns of values read and written by forms and APIs.
filter: DatePatternsPatterns of filter payloads.
date_format_solo: Option<String>Legacy date pattern, used when no other date pattern is set.
date_format: Option<String>Legacy date-time pattern, used when no other date-time pattern is set.
Trait Implementations§
Source§impl Clone for DateConfig
impl Clone for DateConfig
Source§impl Debug for DateConfig
impl Debug for DateConfig
Source§impl Default for DateConfig
impl Default for DateConfig
Source§impl<'de> Deserialize<'de> for DateConfigwhere
DateConfig: Default,
impl<'de> Deserialize<'de> for DateConfigwhere
DateConfig: Default,
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 Forget for DateConfig
impl Freeze for DateConfig
impl Move for DateConfig
impl RefUnwindSafe for DateConfig
impl Send for DateConfigwhere
RawVecInner: Send,
impl Sync for DateConfigwhere
RawVecInner: Sync,
impl Unpin for DateConfig
impl UnsafeUnpin for DateConfig
impl UnwindSafe for DateConfigwhere
RawVecInner: UnwindSafe,
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