pub struct AttrCommandAssigner {
pub name: String,
pub value: Value,
}Expand description
An attribute command used when assigning simple values to attributes:
Cat {
name = "Garfield"
}Fields§
§name: String§value: ValueTrait Implementations§
Source§impl AttrCommand for AttrCommandAssigner
impl AttrCommand for AttrCommandAssigner
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 AttrCommandAssigner
impl Clone for AttrCommandAssigner
Source§fn clone(&self) -> AttrCommandAssigner
fn clone(&self) -> AttrCommandAssigner
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 ValueAssigner for AttrCommandAssigner
impl ValueAssigner for AttrCommandAssigner
Auto Trait Implementations§
impl Freeze for AttrCommandAssigner
impl RefUnwindSafe for AttrCommandAssigner
impl Send for AttrCommandAssigner
impl Sync for AttrCommandAssigner
impl Unpin for AttrCommandAssigner
impl UnwindSafe for AttrCommandAssigner
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