pub struct OrderInitializedBuilder { /* private fields */ }
Expand description
Builder for OrderInitialized
.
Implementations§
Source§impl OrderInitializedBuilder
impl OrderInitializedBuilder
pub fn trader_id(&mut self, value: TraderId) -> &mut Self
pub fn strategy_id(&mut self, value: StrategyId) -> &mut Self
pub fn instrument_id(&mut self, value: InstrumentId) -> &mut Self
pub fn client_order_id(&mut self, value: ClientOrderId) -> &mut Self
pub fn order_side(&mut self, value: OrderSide) -> &mut Self
pub fn order_type(&mut self, value: OrderType) -> &mut Self
pub fn quantity(&mut self, value: Quantity) -> &mut Self
pub fn time_in_force(&mut self, value: TimeInForce) -> &mut Self
pub fn post_only(&mut self, value: bool) -> &mut Self
pub fn reduce_only(&mut self, value: bool) -> &mut Self
pub fn quote_quantity(&mut self, value: bool) -> &mut Self
pub fn reconciliation(&mut self, value: bool) -> &mut Self
pub fn event_id(&mut self, value: UUID4) -> &mut Self
pub fn ts_event(&mut self, value: UnixNanos) -> &mut Self
pub fn ts_init(&mut self, value: UnixNanos) -> &mut Self
pub fn price(&mut self, value: Option<Price>) -> &mut Self
pub fn trigger_price(&mut self, value: Option<Price>) -> &mut Self
pub fn trigger_type(&mut self, value: Option<TriggerType>) -> &mut Self
pub fn limit_offset(&mut self, value: Option<Price>) -> &mut Self
pub fn trailing_offset(&mut self, value: Option<Price>) -> &mut Self
pub fn trailing_offset_type( &mut self, value: Option<TrailingOffsetType>, ) -> &mut Self
pub fn expire_time(&mut self, value: Option<UnixNanos>) -> &mut Self
pub fn display_qty(&mut self, value: Option<Quantity>) -> &mut Self
pub fn emulation_trigger(&mut self, value: Option<TriggerType>) -> &mut Self
pub fn trigger_instrument_id( &mut self, value: Option<InstrumentId>, ) -> &mut Self
pub fn contingency_type(&mut self, value: Option<ContingencyType>) -> &mut Self
pub fn order_list_id(&mut self, value: Option<OrderListId>) -> &mut Self
pub fn linked_order_ids( &mut self, value: Option<Vec<ClientOrderId>>, ) -> &mut Self
pub fn parent_order_id(&mut self, value: Option<ClientOrderId>) -> &mut Self
pub fn exec_algorithm_id(&mut self, value: Option<ExecAlgorithmId>) -> &mut Self
pub fn exec_algorithm_params( &mut self, value: Option<HashMap<Ustr, Ustr>>, ) -> &mut Self
pub fn exec_spawn_id(&mut self, value: Option<ClientOrderId>) -> &mut Self
Sourcepub fn build(&self) -> Result<OrderInitialized, OrderInitializedBuilderError>
pub fn build(&self) -> Result<OrderInitialized, OrderInitializedBuilderError>
Trait Implementations§
Source§impl Clone for OrderInitializedBuilder
impl Clone for OrderInitializedBuilder
Source§fn clone(&self) -> OrderInitializedBuilder
fn clone(&self) -> OrderInitializedBuilder
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for OrderInitializedBuilder
impl RefUnwindSafe for OrderInitializedBuilder
impl Send for OrderInitializedBuilder
impl Sync for OrderInitializedBuilder
impl Unpin for OrderInitializedBuilder
impl UnwindSafe for OrderInitializedBuilder
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