pub struct InjectCommandDiceRoll {
pub name: String,
pub number_of_dice: i32,
pub dice_type: i32,
pub dice_modifier: i32,
}Expand description
An attribute injection command that sets a dice roll value:
attribute ? ClassName {
new_attribute @ 2d20
}Fields§
§name: String§number_of_dice: i32§dice_type: i32§dice_modifier: i32Trait Implementations§
Source§impl Clone for InjectCommandDiceRoll
impl Clone for InjectCommandDiceRoll
Source§fn clone(&self) -> InjectCommandDiceRoll
fn clone(&self) -> InjectCommandDiceRoll
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 InjectCommandDiceRoll
impl InjectCommand for InjectCommandDiceRoll
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 InjectCommandDiceRoll
impl RefUnwindSafe for InjectCommandDiceRoll
impl Send for InjectCommandDiceRoll
impl Sync for InjectCommandDiceRoll
impl Unpin for InjectCommandDiceRoll
impl UnwindSafe for InjectCommandDiceRoll
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