#[non_exhaustive]pub enum BracketType {
StopOnly,
TargetOnly,
TargetAndStop,
StopOnlyStatic,
TargetOnlyStatic,
TargetAndStopStatic,
}Expand description
The shape of a bracket order’s exit legs.
Rithmic does not document the difference between the plain and Static
variants. Our reading is that the Static variants hold their tick distances
fixed relative to the entry, while the others let Rithmic manage them.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
StopOnly
Stop legs only.
TargetOnly
Target legs only.
TargetAndStop
Both target and stop legs.
StopOnlyStatic
Stop legs only, at fixed tick distances.
TargetOnlyStatic
Target legs only, at fixed tick distances.
TargetAndStopStatic
Both target and stop legs, at fixed tick distances.
Implementations§
Source§impl BracketType
impl BracketType
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
The protobuf spelling, as BracketType::as_str_name writes it.
Trait Implementations§
Source§impl Clone for BracketType
impl Clone for BracketType
Source§fn clone(&self) -> BracketType
fn clone(&self) -> BracketType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BracketType
Source§impl Debug for BracketType
impl Debug for BracketType
Source§impl<'de> Deserialize<'de> for BracketType
impl<'de> Deserialize<'de> for BracketType
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
Source§impl Display for BracketType
impl Display for BracketType
impl Eq for BracketType
Source§impl From<BracketType> for BracketType
impl From<BracketType> for BracketType
Source§fn from(bracket_type: BracketType) -> Self
fn from(bracket_type: BracketType) -> Self
Converts to this type from the input type.
Source§impl Hash for BracketType
impl Hash for BracketType
Source§impl PartialEq for BracketType
impl PartialEq for BracketType
Source§impl Serialize for BracketType
impl Serialize for BracketType
impl StructuralPartialEq for BracketType
Auto Trait Implementations§
impl Freeze for BracketType
impl RefUnwindSafe for BracketType
impl Send for BracketType
impl Sync for BracketType
impl Unpin for BracketType
impl UnsafeUnpin for BracketType
impl UnwindSafe for BracketType
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