Struct tea_sdk::utils::wasm_actor::actors::statemachine::CommitContext
pub struct CommitContext {
pub ctx: Vec<u8>,
pub gluedb_ctx: Option<GluedbTransactionContext>,
pub payee_miner_ctx: Option<Vec<u8>>,
pub payee_app_ctx: Option<Vec<u8>>,
pub auth_key: u128,
pub memo: String,
}
Fields§
§ctx: Vec<u8>
§gluedb_ctx: Option<GluedbTransactionContext>
§payee_miner_ctx: Option<Vec<u8>>
§payee_app_ctx: Option<Vec<u8>>
§auth_key: u128
§memo: String
Implementations§
§impl CommitContext
impl CommitContext
pub fn new( ctx: Vec<u8>, gluedb_ctx: Option<GluedbTransactionContext>, payee_miner_ctx: Option<Vec<u8>>, payee_app_ctx: Option<Vec<u8>>, auth_key: u128, memo: String ) -> CommitContext
pub fn ctx_receipting(ctx: Vec<u8>, memo: String) -> CommitContext
pub fn ctx_receipting(ctx: Vec<u8>, memo: String) -> CommitContext
Include a mock auth_key to pass system check This is usually done for system a txn, e.g. developer’s cronjob in state actor
Trait Implementations§
§impl Clone for CommitContext
impl Clone for CommitContext
§fn clone(&self) -> CommitContext
fn clone(&self) -> CommitContext
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 more§impl Debug for CommitContext
impl Debug for CommitContext
§impl Default for CommitContext
impl Default for CommitContext
§fn default() -> CommitContext
fn default() -> CommitContext
Returns the “default value” for a type. Read more
§impl TryInto<CommitRequest> for CommitContext
impl TryInto<CommitRequest> for CommitContext
§fn try_into(
self
) -> Result<CommitRequest, <CommitContext as TryInto<CommitRequest>>::Error>
fn try_into( self ) -> Result<CommitRequest, <CommitContext as TryInto<CommitRequest>>::Error>
Performs the conversion.
Auto Trait Implementations§
impl RefUnwindSafe for CommitContext
impl Send for CommitContext
impl Sync for CommitContext
impl Unpin for CommitContext
impl UnwindSafe for CommitContext
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