pub struct AttrCommandPrerenderedAssigner {
pub name: String,
pub value: Value,
}Expand description
Pre-rendered attribute values command.
Used to pre-render jinja expressions during generation:
attribute = `{%if True %}{{"some value}}{% endif %}`Fields§
§name: String§value: ValueTrait Implementations§
Source§impl AttrCommand for AttrCommandPrerenderedAssigner
impl AttrCommand for AttrCommandPrerenderedAssigner
fn apply( &self, _ctx: &mut Context<'_>, builder: &SandboxBuilder<'_>, tx: &mut ReadWriteTransaction<'_>, euid: &str, ) -> Result<()>
fn revert( &self, _ctx: &mut Context<'_>, _builder: &SandboxBuilder<'_>, tx: &mut ReadWriteTransaction<'_>, euid: &str, ) -> Result<()>
fn value(&self) -> Option<String>
Source§impl Clone for AttrCommandPrerenderedAssigner
impl Clone for AttrCommandPrerenderedAssigner
Source§fn clone(&self) -> AttrCommandPrerenderedAssigner
fn clone(&self) -> AttrCommandPrerenderedAssigner
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 moreAuto Trait Implementations§
impl Freeze for AttrCommandPrerenderedAssigner
impl RefUnwindSafe for AttrCommandPrerenderedAssigner
impl Send for AttrCommandPrerenderedAssigner
impl Sync for AttrCommandPrerenderedAssigner
impl Unpin for AttrCommandPrerenderedAssigner
impl UnwindSafe for AttrCommandPrerenderedAssigner
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