pub struct GTTOrderBuilder { /* private fields */ }
Expand description
GTT order builder for creating complex GTT orders
Implementations§
Source§impl GTTOrderBuilder
impl GTTOrderBuilder
Sourcepub fn trading_symbol<S: Into<String>>(self, symbol: S) -> Self
pub fn trading_symbol<S: Into<String>>(self, symbol: S) -> Self
Set trading symbol
Sourcepub fn transaction_type(self, transaction_type: TransactionType) -> Self
pub fn transaction_type(self, transaction_type: TransactionType) -> Self
Set transaction type
Sourcepub fn order_type(self, order_type: OrderType) -> Self
pub fn order_type(self, order_type: OrderType) -> Self
Set order type
Sourcepub fn build(self) -> Result<GTTOrderParams, String>
pub fn build(self) -> Result<GTTOrderParams, String>
Build the GTT order parameters
Trait Implementations§
Source§impl Clone for GTTOrderBuilder
impl Clone for GTTOrderBuilder
Source§fn clone(&self) -> GTTOrderBuilder
fn clone(&self) -> GTTOrderBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for GTTOrderBuilder
impl Debug for GTTOrderBuilder
Auto Trait Implementations§
impl Freeze for GTTOrderBuilder
impl RefUnwindSafe for GTTOrderBuilder
impl Send for GTTOrderBuilder
impl Sync for GTTOrderBuilder
impl Unpin for GTTOrderBuilder
impl UnwindSafe for GTTOrderBuilder
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