pub struct AttrCommandRollFromList {
pub name: String,
pub list: Vec<Value>,
}Expand description
Roll an attribute value from list.
Cat {
color @ [
* Black
* Ginger
* Gray
]
}Fields§
§name: String§list: Vec<Value>Trait Implementations§
Source§impl AttrCommand for AttrCommandRollFromList
impl AttrCommand for AttrCommandRollFromList
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 AttrCommandRollFromList
impl Clone for AttrCommandRollFromList
Source§fn clone(&self) -> AttrCommandRollFromList
fn clone(&self) -> AttrCommandRollFromList
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 AttrCommandRollFromList
impl RefUnwindSafe for AttrCommandRollFromList
impl Send for AttrCommandRollFromList
impl Sync for AttrCommandRollFromList
impl Unpin for AttrCommandRollFromList
impl UnwindSafe for AttrCommandRollFromList
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