pub struct TemplateDate {
pub date: DateVariable,
pub form: DateForm,
pub fallback: Option<Vec<TemplateComponent>>,
pub suppress_note: Option<bool>,
pub suppress_disamb_suffix: Option<bool>,
pub rendering: Rendering,
pub links: Option<LinksConfig>,
pub custom: Option<HashMap<String, Value>>,
}Expand description
A date component for rendering dates.
Fields§
§date: DateVariable§form: DateForm§fallback: Option<Vec<TemplateComponent>>Authoritative fallback components used when the primary date is missing.
When every component is empty, including for an empty list, the date is omitted.
suppress_note: Option<bool>When true, never wrap this component’s opaque calendar-date note
(e.g. a Minguo/era annotation), regardless of the section’s
note-wrap setting. Use on the redundant occurrence when a style
legitimately renders the same date variable more than once per item
(e.g. a short front-matter year plus a full-precision date later in
the body) so the annotation appears exactly once rather than on every
occurrence. See docs/specs/CALENDAR_DATE_ANNOTATIONS.md and
csl26-gl0n.
suppress_disamb_suffix: Option<bool>When true, never inline a year-suffix disambiguator (e.g. “1947a”)
into this component’s rendering, regardless of hints.disamb_condition.
Use on the redundant occurrence when a style legitimately renders
issued more than once per item — the mirror of suppress_note: a
dual-date shape typically wants the suffix on the short front year
and the calendar-note annotation on the full body date, so each flag
suppresses the opposite occurrence’s copy. See csl26-6eak.
rendering: Rendering§links: Option<LinksConfig>Structured link options (DOI, URL).
custom: Option<HashMap<String, Value>>Custom user-defined fields for extensions.
Trait Implementations§
Source§impl Clone for TemplateDate
impl Clone for TemplateDate
Source§fn clone(&self) -> TemplateDate
fn clone(&self) -> TemplateDate
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more