pub struct InjectCommandSetValue {
pub name: String,
pub value: Value,
}Expand description
An attribute injection command that sets a simple value:
attribute ? ClassName {
new_attribute = "Just a string"
}Fields§
§name: String§value: ValueTrait Implementations§
Source§impl Clone for InjectCommandSetValue
impl Clone for InjectCommandSetValue
Source§fn clone(&self) -> InjectCommandSetValue
fn clone(&self) -> InjectCommandSetValue
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 InjectCommandSetValue
impl InjectCommand for InjectCommandSetValue
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 InjectCommandSetValue
impl RefUnwindSafe for InjectCommandSetValue
impl Send for InjectCommandSetValue
impl Sync for InjectCommandSetValue
impl Unpin for InjectCommandSetValue
impl UnwindSafe for InjectCommandSetValue
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