pub struct Continue {
pub advance_count: u64,
pub transactions: Vec<String>,
pub modify_accounts: BTreeMap<Address, AccountData>,
}Expand description
Builder for Continue requests.
Use this to advance the simulation, inject transactions, or patch accounts.
Fields§
§advance_count: u64§transactions: Vec<String>§modify_accounts: BTreeMap<Address, AccountData>Implementations§
Source§impl Continue
impl Continue
Sourcepub fn push_transaction_base64(self, data: impl Into<String>) -> Self
pub fn push_transaction_base64(self, data: impl Into<String>) -> Self
Append a base64-encoded transaction payload.
Sourcepub fn push_transaction_bytes(self, bytes: &[u8]) -> Self
pub fn push_transaction_bytes(self, bytes: &[u8]) -> Self
Append a raw transaction payload encoded as base64.
Sourcepub fn push_transaction(
self,
transaction: &impl SerializableTransaction,
) -> Result<Self, SerializeEncodeError>
pub fn push_transaction( self, transaction: &impl SerializableTransaction, ) -> Result<Self, SerializeEncodeError>
Append a serializable transaction encoded as base64.
Sourcepub fn modify_account(self, address: Address, account: AccountData) -> Self
pub fn modify_account(self, address: Address, account: AccountData) -> Self
Modify an account state prior to execution.
Sourcepub fn into_params(self) -> ContinueParams
pub fn into_params(self) -> ContinueParams
Convert the builder into API parameters.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Continue
impl RefUnwindSafe for Continue
impl Send for Continue
impl Sync for Continue
impl Unpin for Continue
impl UnsafeUnpin for Continue
impl UnwindSafe for Continue
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> 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> 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