Struct linera_execution::OperationContext
source · pub struct OperationContext {
pub chain_id: ChainId,
pub authenticated_signer: Option<Owner>,
pub authenticated_caller_id: Option<UserApplicationId>,
pub height: BlockHeight,
pub index: Option<u32>,
pub next_message_index: u32,
}Fields§
§chain_id: ChainIdThe current chain ID.
authenticated_signer: Option<Owner>The authenticated signer of the operation, if any.
authenticated_caller_id: Option<UserApplicationId>None if this is the transaction entrypoint or the caller doesn’t want this particular
call to be authenticated (e.g. for safety reasons).
height: BlockHeightThe current block height.
index: Option<u32>The current index of the operation.
next_message_index: u32The index of the next message to be created.
Trait Implementations§
source§impl Clone for OperationContext
impl Clone for OperationContext
source§fn clone(&self) -> OperationContext
fn clone(&self) -> OperationContext
Returns a copy 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 OperationContext
impl Debug for OperationContext
impl Copy for OperationContext
Auto Trait Implementations§
impl Freeze for OperationContext
impl RefUnwindSafe for OperationContext
impl Send for OperationContext
impl Sync for OperationContext
impl Unpin for OperationContext
impl UnwindSafe for OperationContext
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