pub struct GTTTemplate {
pub name: String,
pub description: String,
pub gtt_type: GTTTriggerType,
pub template: GTTCreateParams,
}
Expand description
GTT template for common patterns
Fields§
§name: String
Template name
description: String
Template description
gtt_type: GTTTriggerType
GTT type
template: GTTCreateParams
Template parameters
Implementations§
Source§impl GTTTemplate
impl GTTTemplate
Sourcepub fn stop_loss_template() -> Self
pub fn stop_loss_template() -> Self
Create a stop-loss template
Sourcepub fn target_template() -> Self
pub fn target_template() -> Self
Create a target template
Sourcepub fn bracket_template() -> Self
pub fn bracket_template() -> Self
Create a bracket (OCO) template
Trait Implementations§
Source§impl Clone for GTTTemplate
impl Clone for GTTTemplate
Source§fn clone(&self) -> GTTTemplate
fn clone(&self) -> GTTTemplate
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 GTTTemplate
impl Debug for GTTTemplate
Source§impl<'de> Deserialize<'de> for GTTTemplate
impl<'de> Deserialize<'de> for GTTTemplate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GTTTemplate
impl RefUnwindSafe for GTTTemplate
impl Send for GTTTemplate
impl Sync for GTTTemplate
impl Unpin for GTTTemplate
impl UnwindSafe for GTTTemplate
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