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
The date patterns of the package: config('query_builder_custom.dates') plus the two legacy
config('app.date_format*') settings the PHP casts fall back to.
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 cast form values.
filter: DatePatternsPatterns of filter payloads.
date_format_solo: Option<String>Legacy date pattern (app.date_format_solo).
date_format: Option<String>Legacy date-time pattern (app.date_format).
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