pub struct AttributeNode { /* private fields */ }Implementations§
Source§impl AttributeNode
impl AttributeNode
pub fn static_value( name: impl Into<String>, value: impl Into<String>, ) -> Result<Self, TemplateModelError>
pub fn dynamic_text( name: impl Into<String>, key: impl Into<String>, ) -> Result<Self, TemplateModelError>
pub fn dynamic_expression( name: impl Into<String>, expression: TemplateExpression, ) -> Result<Self, TemplateModelError>
Trait Implementations§
Source§impl Clone for AttributeNode
impl Clone for AttributeNode
Source§fn clone(&self) -> AttributeNode
fn clone(&self) -> AttributeNode
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 AttributeNode
impl Debug for AttributeNode
Source§impl PartialEq for AttributeNode
impl PartialEq for AttributeNode
impl Eq for AttributeNode
impl StructuralPartialEq for AttributeNode
Auto Trait Implementations§
impl Freeze for AttributeNode
impl RefUnwindSafe for AttributeNode
impl Send for AttributeNode
impl Sync for AttributeNode
impl Unpin for AttributeNode
impl UnsafeUnpin for AttributeNode
impl UnwindSafe for AttributeNode
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