pub struct GTTBuilder { /* private fields */ }
Expand description
GTT builder for creating complete GTT triggers with orders
Implementations§
Source§impl GTTBuilder
impl GTTBuilder
Sourcepub fn gtt_type(self, gtt_type: GTTTriggerType) -> Self
pub fn gtt_type(self, gtt_type: GTTTriggerType) -> Self
Set GTT type
Sourcepub fn condition(self, condition: GTTCondition) -> Self
pub fn condition(self, condition: GTTCondition) -> Self
Set condition
Sourcepub fn add_order(self, order: GTTOrderParams) -> Self
pub fn add_order(self, order: GTTOrderParams) -> Self
Add an order
Sourcepub fn orders(self, orders: Vec<GTTOrderParams>) -> Self
pub fn orders(self, orders: Vec<GTTOrderParams>) -> Self
Set orders
Sourcepub fn expires_at(self, expires_at: DateTime<Utc>) -> Self
pub fn expires_at(self, expires_at: DateTime<Utc>) -> Self
Set expiry time
Sourcepub fn build(self) -> Result<GTTCreateParams, String>
pub fn build(self) -> Result<GTTCreateParams, String>
Build the GTT create parameters
Trait Implementations§
Source§impl Clone for GTTBuilder
impl Clone for GTTBuilder
Source§fn clone(&self) -> GTTBuilder
fn clone(&self) -> GTTBuilder
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 GTTBuilder
impl Debug for GTTBuilder
Auto Trait Implementations§
impl Freeze for GTTBuilder
impl RefUnwindSafe for GTTBuilder
impl Send for GTTBuilder
impl Sync for GTTBuilder
impl Unpin for GTTBuilder
impl UnwindSafe for GTTBuilder
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