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, ) -> SetStateStep
pub fn new_token_identifier<T>(self, token_identifier: T) -> SetStateStep
pub fn block_epoch<N>(self, block_epoch_expr: N) -> SetStateStep
pub fn block_nonce<N>(self, block_nonce_expr: N) -> SetStateStep
pub fn block_round<N>(self, block_round_expr: N) -> SetStateStep
pub fn block_timestamp<N>(self, block_timestamp_expr: N) -> SetStateStep
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) -> SetStateStep
pub fn prev_block_nonce<N>(self, block_nonce_expr: N) -> SetStateStep
pub fn prev_block_round<N>(self, block_round_expr: N) -> SetStateStep
pub fn prev_block_timestamp<N>(self, block_timestamp_expr: N) -> SetStateStep
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 Freeze 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> InterpretableFrom<&T> for Twhere
T: Clone,
impl<T> InterpretableFrom<&T> for Twhere
T: Clone,
fn interpret_from(from: &T, _context: &InterpreterContext) -> T
Source§impl<T> InterpretableFrom<T> for T
impl<T> InterpretableFrom<T> for T
fn interpret_from(from: T, _context: &InterpreterContext) -> T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more