pub struct StructureBreakEvent {
pub break_type: StructureBreakType,
pub direction: StructureBreakDirection,
pub level: f64,
pub broken_swing_bar: usize,
pub trigger_bar: usize,
pub trigger_price: f64,
}Expand description
Structural break event emitted when price closes beyond an active swing level.
Fields§
§break_type: StructureBreakTypeBreak classification (BOS or CHoCH).
direction: StructureBreakDirectionDirection of the breakout.
level: f64Price level of the broken swing point.
broken_swing_bar: usizeBar index of the broken swing point.
trigger_bar: usizeBar index that triggered the confirmation break.
trigger_price: f64Close price of the triggering bar.
Trait Implementations§
Source§impl Clone for StructureBreakEvent
impl Clone for StructureBreakEvent
impl Copy for StructureBreakEvent
Source§impl Debug for StructureBreakEvent
impl Debug for StructureBreakEvent
Source§impl<'de> Deserialize<'de> for StructureBreakEvent
impl<'de> Deserialize<'de> for StructureBreakEvent
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 PartialEq for StructureBreakEvent
impl PartialEq for StructureBreakEvent
Source§impl Serialize for StructureBreakEvent
impl Serialize for StructureBreakEvent
impl StructuralPartialEq for StructureBreakEvent
Auto Trait Implementations§
impl Forget for StructureBreakEvent
impl Freeze for StructureBreakEvent
impl Move for StructureBreakEvent
impl RefUnwindSafe for StructureBreakEvent
impl Send for StructureBreakEvent
impl Sync for StructureBreakEvent
impl Unpin for StructureBreakEvent
impl UnsafeUnpin for StructureBreakEvent
impl UnwindSafe for StructureBreakEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.