pub struct CreateSession {
pub start_slot: u64,
pub end_slot: Option<u64>,
pub slot_count: Option<u64>,
pub signer_filter: BTreeSet<Address>,
pub send_summary: bool,
pub parallel: bool,
pub capacity_wait_timeout_secs: Option<u16>,
pub disconnect_timeout_secs: Option<u16>,
pub extra_compute_units: Option<u32>,
pub agents: Vec<AgentParams>,
pub discoveries: Vec<DiscoveryFilter>,
}Expand description
Builder for CreateBacktestSession.
Set either end_slot or slot_count (not both). Use the helper methods to
add account filters.
Fields§
§start_slot: u64§end_slot: Option<u64>§slot_count: Option<u64>§signer_filter: BTreeSet<Address>§send_summary: boolWhen true, include a session summary with transaction statistics in the Completed response.
parallel: boolWhen true, ask manager to create all available sessions in the target epoch.
capacity_wait_timeout_secs: Option<u16>§disconnect_timeout_secs: Option<u16>§extra_compute_units: Option<u32>Extra compute units to add to each transaction’s SetComputeUnitLimit budget.
agents: Vec<AgentParams>§discoveries: Vec<DiscoveryFilter>Batch discovery filters registered at session creation. For each
filter, the server emits [BacktestResponse::DiscoveryBatch] ahead
of every matching batch so the caller can pause via
[BacktestSession::advance_to_discovery] before it executes.
Implementations§
Source§impl CreateSession
impl CreateSession
Sourcepub fn builder() -> CreateSessionBuilder
pub fn builder() -> CreateSessionBuilder
Create an instance of CreateSession using the builder syntax
Source§impl CreateSession
impl CreateSession
Sourcepub fn add_signer_filter(self, address: Address) -> Self
pub fn add_signer_filter(self, address: Address) -> Self
Add an account to the signer filter.
Sourcepub fn into_params(self) -> Result<CreateSessionParams, BacktestClientError>
pub fn into_params(self) -> Result<CreateSessionParams, BacktestClientError>
Convert the builder into API parameters, validating slot options.
Sourcepub fn into_request(
self,
) -> Result<CreateBacktestSessionRequest, BacktestClientError>
pub fn into_request( self, ) -> Result<CreateBacktestSessionRequest, BacktestClientError>
Convert the builder into versioned create request payload.
Trait Implementations§
Source§impl Clone for CreateSession
impl Clone for CreateSession
Source§fn clone(&self) -> CreateSession
fn clone(&self) -> CreateSession
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for CreateSession
impl RefUnwindSafe for CreateSession
impl Send for CreateSession
impl Sync for CreateSession
impl Unpin for CreateSession
impl UnsafeUnpin for CreateSession
impl UnwindSafe for CreateSession
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
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> 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>
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>
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