pub struct DateElement {
pub variable: String,
pub form: Option<String>,
pub date_parts: Option<String>,
pub parts: Vec<DatePart>,
pub common: Common,
}Expand description
<date>: renders a date variable, localized or with explicit parts.
Fields§
§variable: String§form: Option<String>form="numeric"|"text" for a localized date, or None.
date_parts: Option<String>date-parts="year-month-day"|"year-month"|"year".
parts: Vec<DatePart>§common: CommonTrait Implementations§
Source§impl Clone for DateElement
impl Clone for DateElement
Source§fn clone(&self) -> DateElement
fn clone(&self) -> DateElement
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 DateElement
impl Debug for DateElement
Source§impl PartialEq for DateElement
impl PartialEq for DateElement
impl Eq for DateElement
impl StructuralPartialEq for DateElement
Auto Trait Implementations§
impl Freeze for DateElement
impl RefUnwindSafe for DateElement
impl Send for DateElement
impl Sync for DateElement
impl Unpin for DateElement
impl UnsafeUnpin for DateElement
impl UnwindSafe for DateElement
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