pub struct PaperSubmitRequest<'a, P: ExecutionEventPort + LedgerProbe> {
pub command: &'a ControlCommand,
pub pipeline: &'a mut P,
pub now: u64,
pub risk: Option<RiskContext>,
pub position: Option<OrderRiskPosition>,
pub market_quote: Option<QuoteTick>,
pub fee_model: Box<dyn FeeModel + Send>,
pub allow_synthetic_quote: bool,
pub spread_store: Option<&'a dyn SpreadOrderGroupStore>,
}Expand description
Required Paper execution inputs. Every safety and pricing decision is a named,
mandatory field; this type intentionally has no Default implementation.
Fields§
§command: &'a ControlCommand§pipeline: &'a mut P§now: u64§risk: Option<RiskContext>§position: Option<OrderRiskPosition>§market_quote: Option<QuoteTick>§fee_model: Box<dyn FeeModel + Send>§allow_synthetic_quote: bool§spread_store: Option<&'a dyn SpreadOrderGroupStore>Auto Trait Implementations§
impl<'a, P> !RefUnwindSafe for PaperSubmitRequest<'a, P>
impl<'a, P> !Send for PaperSubmitRequest<'a, P>
impl<'a, P> !Sync for PaperSubmitRequest<'a, P>
impl<'a, P> !UnwindSafe for PaperSubmitRequest<'a, P>
impl<'a, P> Forget for PaperSubmitRequest<'a, P>
impl<'a, P> Freeze for PaperSubmitRequest<'a, P>where
&'a ControlCommand: Freeze,
&'a mut P: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const dyn FeeModel + Send is !null: Freeze,
PhantomData<dyn FeeModel + Send>: Freeze,
&'a dyn SpreadOrderGroupStore: Freeze,
impl<'a, P> Move for PaperSubmitRequest<'a, P>
impl<'a, P> Unpin for PaperSubmitRequest<'a, P>
impl<'a, P> UnsafeUnpin for PaperSubmitRequest<'a, P>where
&'a ControlCommand: UnsafeUnpin,
&'a mut P: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const dyn FeeModel + Send is !null: UnsafeUnpin,
PhantomData<dyn FeeModel + Send>: UnsafeUnpin,
&'a dyn SpreadOrderGroupStore: UnsafeUnpin,
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