pub enum CreateBacktestSessionRequest {
V1(CreateBacktestSessionRequestV1),
V0(CreateSessionParams),
}Expand description
The params of createBacktestSession, in either version. Untagged: the server tells them
apart by shape.
Variants§
V1(CreateBacktestSessionRequestV1)
Adds a session name and parallel sessions to CreateSessionParams.
V0(CreateSessionParams)
CreateSessionParams alone: one unnamed session.
Implementations§
Source§impl CreateBacktestSessionRequest
impl CreateBacktestSessionRequest
Sourcepub fn into_request_and_parallel(self) -> (CreateSessionParams, bool)
pub fn into_request_and_parallel(self) -> (CreateSessionParams, bool)
The session parameters and whether the range is split across parallel sessions.
Trait Implementations§
Source§impl Clone for CreateBacktestSessionRequest
impl Clone for CreateBacktestSessionRequest
Source§impl Debug for CreateBacktestSessionRequest
impl Debug for CreateBacktestSessionRequest
Source§impl<'de> Deserialize<'de> for CreateBacktestSessionRequest
impl<'de> Deserialize<'de> for CreateBacktestSessionRequest
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<CreateBacktestSessionRequest> for CreateBacktestSessionRequestV1
impl From<CreateBacktestSessionRequest> for CreateBacktestSessionRequestV1
Source§fn from(value: CreateBacktestSessionRequest) -> Self
fn from(value: CreateBacktestSessionRequest) -> Self
Converts to this type from the input type.
Source§impl From<CreateBacktestSessionRequestV1> for CreateBacktestSessionRequest
impl From<CreateBacktestSessionRequestV1> for CreateBacktestSessionRequest
Source§fn from(value: CreateBacktestSessionRequestV1) -> Self
fn from(value: CreateBacktestSessionRequestV1) -> Self
Converts to this type from the input type.
Source§impl From<CreateSessionParams> for CreateBacktestSessionRequest
impl From<CreateSessionParams> for CreateBacktestSessionRequest
Source§fn from(value: CreateSessionParams) -> Self
fn from(value: CreateSessionParams) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Forget for CreateBacktestSessionRequest
impl Freeze for CreateBacktestSessionRequestwhere
*const LeafNode<SwapAggregator, SetValZST> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(SwapAggregator, SetValZST)>>: Freeze,
*const LeafNode<SwapScope, SetValZST> is !null: Freeze,
PhantomData<Box<(SwapScope, SetValZST)>>: Freeze,
*const LeafNode<MintPair, SetValZST> is !null: Freeze,
PhantomData<Box<(MintPair, SetValZST)>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<VenueTemplate>: Freeze,
*const LeafNode<Address, SetValZST> is !null: Freeze,
PhantomData<Box<(Address, SetValZST)>>: Freeze,
PhantomData<DiscoveryFilter>: Freeze,
PhantomData<ScheduledAction>: Freeze,
PhantomData<DiagnosticProbeParams>: Freeze,
PhantomData<u8>: Freeze,
impl Move for CreateBacktestSessionRequest
impl RefUnwindSafe for CreateBacktestSessionRequest
impl Send for CreateBacktestSessionRequestwhere
NodeRef<Owned, SwapAggregator, SetValZST, LeafOrInternal>: Send,
BoxRaw<(SwapAggregator, SetValZST)>: Send,
NodeRef<Owned, SwapScope, SetValZST, LeafOrInternal>: Send,
BoxRaw<(SwapScope, SetValZST)>: Send,
NodeRef<Owned, MintPair, SetValZST, LeafOrInternal>: Send,
BoxRaw<(MintPair, SetValZST)>: Send,
RawVecInner: Send,
NodeRef<Owned, Address, SetValZST, LeafOrInternal>: Send,
BoxRaw<(Address, SetValZST)>: Send,
NonZero<u64>: Send,
NodeRef<Owned, Address, AccountData, LeafOrInternal>: Send,
BoxRaw<(Address, AccountData)>: Send,
impl Sync for CreateBacktestSessionRequestwhere
NodeRef<Owned, SwapAggregator, SetValZST, LeafOrInternal>: Sync,
BoxRaw<(SwapAggregator, SetValZST)>: Sync,
NodeRef<Owned, SwapScope, SetValZST, LeafOrInternal>: Sync,
BoxRaw<(SwapScope, SetValZST)>: Sync,
NodeRef<Owned, MintPair, SetValZST, LeafOrInternal>: Sync,
BoxRaw<(MintPair, SetValZST)>: Sync,
RawVecInner: Sync,
NodeRef<Owned, Address, SetValZST, LeafOrInternal>: Sync,
BoxRaw<(Address, SetValZST)>: Sync,
NonZero<u64>: Sync,
NodeRef<Owned, Address, AccountData, LeafOrInternal>: Sync,
BoxRaw<(Address, AccountData)>: Sync,
impl Unpin for CreateBacktestSessionRequestwhere
*const LeafNode<SwapAggregator, SetValZST> is !null: Unpin,
Box<(SwapAggregator, SetValZST)>: Unpin,
*const LeafNode<SwapScope, SetValZST> is !null: Unpin,
Box<(SwapScope, SetValZST)>: Unpin,
*const LeafNode<MintPair, SetValZST> is !null: Unpin,
Box<(MintPair, SetValZST)>: Unpin,
*const u8 is !null: Unpin,
*const LeafNode<Address, SetValZST> is !null: Unpin,
Box<(Address, SetValZST)>: Unpin,
NonZero<u64>: Unpin,
*const LeafNode<Address, AccountData> is !null: Unpin,
Box<(Address, AccountData)>: Unpin,
impl UnsafeUnpin for CreateBacktestSessionRequestwhere
*const LeafNode<SwapAggregator, SetValZST> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(SwapAggregator, SetValZST)>>: UnsafeUnpin,
*const LeafNode<SwapScope, SetValZST> is !null: UnsafeUnpin,
PhantomData<Box<(SwapScope, SetValZST)>>: UnsafeUnpin,
*const LeafNode<MintPair, SetValZST> is !null: UnsafeUnpin,
PhantomData<Box<(MintPair, SetValZST)>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<VenueTemplate>: UnsafeUnpin,
*const LeafNode<Address, SetValZST> is !null: UnsafeUnpin,
PhantomData<Box<(Address, SetValZST)>>: UnsafeUnpin,
PhantomData<DiscoveryFilter>: UnsafeUnpin,
PhantomData<ScheduledAction>: UnsafeUnpin,
PhantomData<DiagnosticProbeParams>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for CreateBacktestSessionRequestwhere
BTreeMap<SwapAggregator, SetValZST>: UnwindSafe,
BTreeMap<SwapScope, SetValZST>: UnwindSafe,
BTreeMap<MintPair, SetValZST>: UnwindSafe,
RawVecInner: UnwindSafe,
BTreeMap<Address, SetValZST>: UnwindSafe,
NonZero<u64>: UnwindSafe,
BTreeMap<Address, AccountData>: UnwindSafe,
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