pub struct GTTConditionBuilder { /* private fields */ }
Expand description
GTT condition builder
Implementations§
Source§impl GTTConditionBuilder
impl GTTConditionBuilder
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 trigger_value(self, value: f64) -> Self
pub fn trigger_value(self, value: f64) -> Self
Add a trigger value
Sourcepub fn trigger_values(self, values: Vec<f64>) -> Self
pub fn trigger_values(self, values: Vec<f64>) -> Self
Set multiple trigger values
Sourcepub fn last_price(self, price: f64) -> Self
pub fn last_price(self, price: f64) -> Self
Set last price
Sourcepub fn build(self) -> Result<GTTCondition, String>
pub fn build(self) -> Result<GTTCondition, String>
Build the GTT condition
Trait Implementations§
Source§impl Clone for GTTConditionBuilder
impl Clone for GTTConditionBuilder
Source§fn clone(&self) -> GTTConditionBuilder
fn clone(&self) -> GTTConditionBuilder
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 GTTConditionBuilder
impl Debug for GTTConditionBuilder
Auto Trait Implementations§
impl Freeze for GTTConditionBuilder
impl RefUnwindSafe for GTTConditionBuilder
impl Send for GTTConditionBuilder
impl Sync for GTTConditionBuilder
impl Unpin for GTTConditionBuilder
impl UnwindSafe for GTTConditionBuilder
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