pub struct ResourceCommandContext {
pub key: ResourceKey,
pub scope: ScopeId,
pub transaction_id: TransactionId,
pub revision: Revision,
pub generation: u64,
pub kind: ResourceCommandKind,
}Expand description
Structural context for a resource command observed by the ledger.
Fields§
§key: ResourceKeyResource key targeted by the command.
scope: ScopeIdScope associated with the command.
transaction_id: TransactionIdTransaction that emitted the command.
revision: RevisionGraph revision that emitted the command.
generation: u64Ledger-assigned command generation for this resource key.
kind: ResourceCommandKindCommand operation without application payload.
Trait Implementations§
Source§impl Clone for ResourceCommandContext
impl Clone for ResourceCommandContext
Source§fn clone(&self) -> ResourceCommandContext
fn clone(&self) -> ResourceCommandContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ResourceCommandContext
impl Debug for ResourceCommandContext
impl Eq for ResourceCommandContext
Source§impl PartialEq for ResourceCommandContext
impl PartialEq for ResourceCommandContext
Source§fn eq(&self, other: &ResourceCommandContext) -> bool
fn eq(&self, other: &ResourceCommandContext) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ResourceCommandContext
Auto Trait Implementations§
impl Freeze for ResourceCommandContext
impl RefUnwindSafe for ResourceCommandContext
impl Send for ResourceCommandContext
impl Sync for ResourceCommandContext
impl Unpin for ResourceCommandContext
impl UnsafeUnpin for ResourceCommandContext
impl UnwindSafe for ResourceCommandContext
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