pub struct TemplateDate {
pub date: DateVariable,
pub form: DateForm,
pub fallback: Option<Vec<TemplateComponent>>,
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>>Fallback components if the primary date is missing.
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
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ComponentValues for TemplateDate
impl ComponentValues for TemplateDate
Source§fn values<F: OutputFormat<Output = String>>(
&self,
reference: &Reference,
hints: &ProcHints,
options: &RenderOptions<'_>,
) -> Option<ProcValues<F::Output>>
fn values<F: OutputFormat<Output = String>>( &self, reference: &Reference, hints: &ProcHints, options: &RenderOptions<'_>, ) -> Option<ProcValues<F::Output>>
Resolve the component into processed render values for one reference.
Source§impl Debug for TemplateDate
impl Debug for TemplateDate
Source§impl Default for TemplateDate
impl Default for TemplateDate
Source§fn default() -> TemplateDate
fn default() -> TemplateDate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TemplateDate
impl<'de> Deserialize<'de> for TemplateDate
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TemplateDate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TemplateDate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TemplateDate
impl PartialEq for TemplateDate
Source§fn eq(&self, other: &TemplateDate) -> bool
fn eq(&self, other: &TemplateDate) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TemplateDate
impl Serialize for TemplateDate
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for TemplateDate
Auto Trait Implementations§
impl Freeze for TemplateDate
impl RefUnwindSafe for TemplateDate
impl Send for TemplateDate
impl Sync for TemplateDate
impl Unpin for TemplateDate
impl UnsafeUnpin for TemplateDate
impl UnwindSafe for TemplateDate
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