Struct novax_executor::SetStateStep
source · pub struct SetStateStep {
pub comment: Option<String>,
pub accounts: BTreeMap<AddressKey, Account>,
pub new_addresses: Vec<NewAddress>,
pub new_token_identifiers: Vec<String>,
pub block_hashes: Vec<BytesValue>,
pub previous_block_info: Box<Option<BlockInfo>>,
pub current_block_info: Box<Option<BlockInfo>>,
}Fields§
§comment: Option<String>§accounts: BTreeMap<AddressKey, Account>§new_addresses: Vec<NewAddress>§new_token_identifiers: Vec<String>§block_hashes: Vec<BytesValue>§previous_block_info: Box<Option<BlockInfo>>§current_block_info: Box<Option<BlockInfo>>Implementations§
source§impl SetStateStep
impl SetStateStep
pub fn new() -> SetStateStep
pub fn put_account<A>(self, address_expr: A, account: Account) -> SetStateStepwhere AddressKey: From<A>,
pub fn new_address<CA, NA>( self, creator_address_expr: CA, creator_nonce_expr: u64, new_address_expr: NA ) -> SetStateStepwhere AddressValue: From<CA> + From<NA>,
pub fn new_token_identifier<T>(self, token_identifier: T) -> SetStateStepwhere String: From<T>,
pub fn block_epoch<N>(self, block_epoch_expr: N) -> SetStateStepwhere U64Value: From<N>,
pub fn block_nonce<N>(self, block_nonce_expr: N) -> SetStateStepwhere U64Value: From<N>,
pub fn block_round<N>(self, block_round_expr: N) -> SetStateStepwhere U64Value: From<N>,
pub fn block_timestamp<N>(self, block_timestamp_expr: N) -> SetStateStepwhere U64Value: From<N>,
pub fn block_random_seed<B>(self, block_random_seed_expr: B) -> SetStateStepwhere BytesValue: From<B>,
pub fn prev_block_epoch<N>(self, block_epoch_expr: N) -> SetStateStepwhere U64Value: From<N>,
pub fn prev_block_nonce<N>(self, block_nonce_expr: N) -> SetStateStepwhere U64Value: From<N>,
pub fn prev_block_round<N>(self, block_round_expr: N) -> SetStateStepwhere U64Value: From<N>,
pub fn prev_block_timestamp<N>(self, block_timestamp_expr: N) -> SetStateStepwhere U64Value: From<N>,
pub fn prev_block_random_seed<B>( self, block_random_seed_expr: B ) -> SetStateStepwhere BytesValue: From<B>,
Trait Implementations§
source§impl Clone for SetStateStep
impl Clone for SetStateStep
source§fn clone(&self) -> SetStateStep
fn clone(&self) -> SetStateStep
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 SetStateStep
impl Debug for SetStateStep
source§impl Default for SetStateStep
impl Default for SetStateStep
source§fn default() -> SetStateStep
fn default() -> SetStateStep
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl CodecFromSelf for SetStateStep
impl RefUnwindSafe for SetStateStep
impl Send for SetStateStep
impl Sync for SetStateStep
impl Unpin for SetStateStep
impl UnwindSafe for SetStateStep
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