pub struct TemplateVariable {
pub variable: SimpleVariable,
pub rendering: Rendering,
pub links: Option<LinksConfig>,
pub custom: Option<HashMap<String, Value>>,
}Expand description
A simple variable component (DOI, ISBN, URL, etc.).
Fields§
§variable: SimpleVariable§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 TemplateVariable
impl Clone for TemplateVariable
Source§fn clone(&self) -> TemplateVariable
fn clone(&self) -> TemplateVariable
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 Debug for TemplateVariable
impl Debug for TemplateVariable
Source§impl Default for TemplateVariable
impl Default for TemplateVariable
Source§fn default() -> TemplateVariable
fn default() -> TemplateVariable
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TemplateVariable
impl<'de> Deserialize<'de> for TemplateVariable
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TemplateVariable, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TemplateVariable, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TemplateVariable
impl PartialEq for TemplateVariable
Source§fn eq(&self, other: &TemplateVariable) -> bool
fn eq(&self, other: &TemplateVariable) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TemplateVariable
impl Serialize for TemplateVariable
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 TemplateVariable
Auto Trait Implementations§
impl Freeze for TemplateVariable
impl RefUnwindSafe for TemplateVariable
impl Send for TemplateVariable
impl Sync for TemplateVariable
impl Unpin for TemplateVariable
impl UnsafeUnpin for TemplateVariable
impl UnwindSafe for TemplateVariable
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