pub struct AttrCommandRollFromVariable {
pub name: String,
pub var: String,
}Expand description
Roll an attribute value indirectly using a variable.
pets = [
* dog
* cat
* fox
]
attribute @ $pets
Fields§
§name: String§var: StringTrait Implementations§
Source§impl AttrCommand for AttrCommandRollFromVariable
impl AttrCommand for AttrCommandRollFromVariable
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 AttrCommandRollFromVariable
impl Clone for AttrCommandRollFromVariable
Source§fn clone(&self) -> AttrCommandRollFromVariable
fn clone(&self) -> AttrCommandRollFromVariable
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 AttrCommandRollFromVariable
impl RefUnwindSafe for AttrCommandRollFromVariable
impl Send for AttrCommandRollFromVariable
impl Sync for AttrCommandRollFromVariable
impl Unpin for AttrCommandRollFromVariable
impl UnwindSafe for AttrCommandRollFromVariable
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