pub struct AttrCommandRollEntity {
pub name: String,
pub class_names: ClassNamesToRoll,
pub min: CardinalityValue,
pub max: CardinalityValue,
pub injectors: Injectors,
}Expand description
An attribute command for rolling entities into attributes.
Wolf {
}
Forest {
[1..10 wolves] @ Wolf
}
Fields§
§name: String§class_names: ClassNamesToRoll§min: CardinalityValue§max: CardinalityValue§injectors: InjectorsTrait Implementations§
Source§impl AttrCommand for AttrCommandRollEntity
impl AttrCommand for AttrCommandRollEntity
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 AttrCommandRollEntity
impl Clone for AttrCommandRollEntity
Source§fn clone(&self) -> AttrCommandRollEntity
fn clone(&self) -> AttrCommandRollEntity
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 EntityAssigner for AttrCommandRollEntity
impl EntityAssigner for AttrCommandRollEntity
Source§fn new(
name: String,
class_names: ClassNamesToRoll,
min: CardinalityValue,
max: CardinalityValue,
injectors: Injectors,
) -> Self
fn new( name: String, class_names: ClassNamesToRoll, min: CardinalityValue, max: CardinalityValue, injectors: Injectors, ) -> Self
Constructs a new instance implementing the
EntityAssigner trait. Read moreAuto Trait Implementations§
impl Freeze for AttrCommandRollEntity
impl !RefUnwindSafe for AttrCommandRollEntity
impl Send for AttrCommandRollEntity
impl Sync for AttrCommandRollEntity
impl Unpin for AttrCommandRollEntity
impl !UnwindSafe for AttrCommandRollEntity
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