pub struct AttrCommandContext {
pub name: String,
pub context_parent: String,
pub context_attr: String,
}Expand description
Copy the attribute value of an ancestor. The ancestor attribute is specified using a class name followed by an attribute name:
attribute = :ClassName.attribute_nameFields§
§name: String§context_parent: String§context_attr: StringTrait Implementations§
Source§impl AttrCommand for AttrCommandContext
impl AttrCommand for AttrCommandContext
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 AttrCommandContext
impl Clone for AttrCommandContext
Source§fn clone(&self) -> AttrCommandContext
fn clone(&self) -> AttrCommandContext
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 moreAuto Trait Implementations§
impl Freeze for AttrCommandContext
impl RefUnwindSafe for AttrCommandContext
impl Send for AttrCommandContext
impl Sync for AttrCommandContext
impl Unpin for AttrCommandContext
impl UnwindSafe for AttrCommandContext
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