pub struct InjectCommandRollFromList {
pub name: String,
pub list: Vec<Value>,
}Expand description
An attribute injection command that rolls a value from a list:
attribute % ClassName {
new_attribute @ [
* foo
* bar
]
}Fields§
§name: String§list: Vec<Value>Trait Implementations§
Source§impl Clone for InjectCommandRollFromList
impl Clone for InjectCommandRollFromList
Source§fn clone(&self) -> InjectCommandRollFromList
fn clone(&self) -> InjectCommandRollFromList
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 InjectCommand for InjectCommandRollFromList
impl InjectCommand for InjectCommandRollFromList
fn inject( &self, builder: &SandboxBuilder<'_>, tx: &mut ReadWriteTransaction<'_>, euid: &str, _caller: &str, ) -> Result<()>
fn eject( &self, _builder: &SandboxBuilder<'_>, tx: &mut ReadWriteTransaction<'_>, euid: &str, _caller: &str, ) -> Result<()>
Auto Trait Implementations§
impl Freeze for InjectCommandRollFromList
impl RefUnwindSafe for InjectCommandRollFromList
impl Send for InjectCommandRollFromList
impl Sync for InjectCommandRollFromList
impl Unpin for InjectCommandRollFromList
impl UnwindSafe for InjectCommandRollFromList
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