pub struct AttrCommandWeakAssigner {
pub name: String,
pub value: Value,
}Expand description
An attribute command for assigning values and templates that are weakly linked with entities.
These weakly linked values are not stored in the data file, but are instead read from the parsed model at runtime.
Cat {
name ~ "Garfield"
}Fields§
§name: String§value: ValueTrait Implementations§
Source§impl AttrCommand for AttrCommandWeakAssigner
impl AttrCommand for AttrCommandWeakAssigner
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 AttrCommandWeakAssigner
impl Clone for AttrCommandWeakAssigner
Source§fn clone(&self) -> AttrCommandWeakAssigner
fn clone(&self) -> AttrCommandWeakAssigner
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 AttrCommandWeakAssigner
impl RefUnwindSafe for AttrCommandWeakAssigner
impl Send for AttrCommandWeakAssigner
impl Sync for AttrCommandWeakAssigner
impl Unpin for AttrCommandWeakAssigner
impl UnwindSafe for AttrCommandWeakAssigner
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