pub struct CapabilityGrantCommand { /* private fields */ }Expand description
Semantic command for capability grant.
Implementations§
Source§impl CapabilityGrantCommand
impl CapabilityGrantCommand
Sourcepub fn new(
sequence: u64,
actor_id: ActorId,
capability: Capability,
tenant_id: TenantId,
timestamp: u64,
) -> Self
pub fn new( sequence: u64, actor_id: ActorId, capability: Capability, tenant_id: TenantId, timestamp: u64, ) -> Self
Creates a new capability-grant command.
Sourcepub fn capability(&self) -> &Capability
pub fn capability(&self) -> &Capability
Returns the capability to grant.
Trait Implementations§
Source§impl Clone for CapabilityGrantCommand
impl Clone for CapabilityGrantCommand
Source§fn clone(&self) -> CapabilityGrantCommand
fn clone(&self) -> CapabilityGrantCommand
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 Debug for CapabilityGrantCommand
impl Debug for CapabilityGrantCommand
Source§impl PartialEq for CapabilityGrantCommand
impl PartialEq for CapabilityGrantCommand
impl Eq for CapabilityGrantCommand
impl StructuralPartialEq for CapabilityGrantCommand
Auto Trait Implementations§
impl Freeze for CapabilityGrantCommand
impl RefUnwindSafe for CapabilityGrantCommand
impl Send for CapabilityGrantCommand
impl Sync for CapabilityGrantCommand
impl Unpin for CapabilityGrantCommand
impl UnsafeUnpin for CapabilityGrantCommand
impl UnwindSafe for CapabilityGrantCommand
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