pub enum BacktestResponse {
SessionCreated {
session_id: String,
rpc_endpoint: String,
},
SessionAttached {
session_id: String,
rpc_endpoint: String,
},
SessionsCreated {
session_ids: Vec<String>,
},
ReadyForContinue,
SlotNotification(u64),
Error(BacktestError),
Success,
Completed {
summary: Option<SessionSummary>,
},
Status {
status: BacktestStatus,
},
SessionEventV1 {
session_id: String,
event: SessionEventV1,
},
}Expand description
Responses returned over the backtest RPC channel.
Variants§
SessionCreated
SessionAttached
SessionsCreated
ReadyForContinue
SlotNotification(u64)
Error(BacktestError)
Success
Completed
Fields
§
summary: Option<SessionSummary>Session summary with transaction statistics.
The session always computes this summary, but management may omit it from
client-facing responses unless send_summary was requested at session creation.
Status
Fields
§
status: BacktestStatusSessionEventV1
Implementations§
Source§impl BacktestResponse
impl BacktestResponse
pub fn is_completed(&self) -> bool
pub fn is_terminal(&self) -> bool
Trait Implementations§
Source§impl Clone for BacktestResponse
impl Clone for BacktestResponse
Source§fn clone(&self) -> BacktestResponse
fn clone(&self) -> BacktestResponse
Returns a duplicate 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 BacktestResponse
impl Debug for BacktestResponse
Source§impl<'de> Deserialize<'de> for BacktestResponse
impl<'de> Deserialize<'de> for BacktestResponse
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
Source§impl From<&str> for BacktestResponse
impl From<&str> for BacktestResponse
Source§impl From<BacktestError> for BacktestResponse
impl From<BacktestError> for BacktestResponse
Source§fn from(error: BacktestError) -> Self
fn from(error: BacktestError) -> Self
Converts to this type from the input type.
Source§impl From<BacktestStatus> for BacktestResponse
impl From<BacktestStatus> for BacktestResponse
Source§fn from(status: BacktestStatus) -> Self
fn from(status: BacktestStatus) -> Self
Converts to this type from the input type.
Source§impl From<String> for BacktestResponse
impl From<String> for BacktestResponse
Auto Trait Implementations§
impl Freeze for BacktestResponse
impl RefUnwindSafe for BacktestResponse
impl Send for BacktestResponse
impl Sync for BacktestResponse
impl Unpin for BacktestResponse
impl UnsafeUnpin for BacktestResponse
impl UnwindSafe for BacktestResponse
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