pub struct ScheduledAction {
pub anchor: ActionAnchor,
pub kind: ActionKind,
pub transactions: Vec<String>,
pub account_overrides: AccountModifications,
pub return_accounts: Vec<Address>,
pub label: Option<String>,
}Expand description
A sequence of transactions the server runs automatically during a backtest,
with results streamed over the actionSubscribe subscription.
Fields§
§anchor: ActionAnchor§kind: ActionKind§transactions: Vec<String>Base64-encoded transactions, run in order against shared scratch state.
For simulate, each transaction’s writes are visible to the next without
committing to the session ledger.
account_overrides: AccountModificationsAccount state overrides seeding the first transaction’s simulation, per
simulateTransaction modifyAccountStates semantics. Only valid for
kind: simulate.
return_accounts: Vec<Address>Accounts whose post-execution state to return, following
simulateTransaction semantics; reflects cumulative state after the
final transaction.
label: Option<String>Optional client tag echoed back on each actionSubscribe result to correlate it to this action.
Trait Implementations§
Source§impl Clone for ScheduledAction
impl Clone for ScheduledAction
Source§fn clone(&self) -> ScheduledAction
fn clone(&self) -> ScheduledAction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ScheduledAction
impl Debug for ScheduledAction
Source§impl<'de> Deserialize<'de> for ScheduledAction
impl<'de> Deserialize<'de> for ScheduledAction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ScheduledAction
impl RefUnwindSafe for ScheduledAction
impl Send for ScheduledAction
impl Sync for ScheduledAction
impl Unpin for ScheduledAction
impl UnsafeUnpin for ScheduledAction
impl UnwindSafe for ScheduledAction
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