pub struct InjectCommandCopyValue {
pub name: String,
pub path: Vec<String>,
}Expand description
An attribute injection command that copies a value from the parent entity:
MainClass {
main_attribute = "Value"
attribute % AnotherClass {
# new_attribute will be set to "Value"
new_attribute = &main_attribute
}
}Fields§
§name: String§path: Vec<String>Trait Implementations§
Source§impl Clone for InjectCommandCopyValue
impl Clone for InjectCommandCopyValue
Source§fn clone(&self) -> InjectCommandCopyValue
fn clone(&self) -> InjectCommandCopyValue
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 InjectCommandCopyValue
impl InjectCommand for InjectCommandCopyValue
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 InjectCommandCopyValue
impl RefUnwindSafe for InjectCommandCopyValue
impl Send for InjectCommandCopyValue
impl Sync for InjectCommandCopyValue
impl Unpin for InjectCommandCopyValue
impl UnwindSafe for InjectCommandCopyValue
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