pub enum Impact {
Low,
Medium,
High,
}Expand description
Impact level of an economic event on the market. Forex Factory uses Low (yellow), Medium (orange), High (red).
Variants§
Low
Low impact - typically minor market movement expected
Medium
Medium impact - moderate market movement possible
High
High impact - significant market movement likely
Implementations§
Source§impl Impact
impl Impact
Sourcepub fn from_stars(stars: u8) -> Option<Self>
pub fn from_stars(stars: u8) -> Option<Self>
Create from star rating (1-3), returns None for invalid values
Sourcepub fn from_ff_class(class: &str) -> Option<Self>
pub fn from_ff_class(class: &str) -> Option<Self>
Parse from Forex Factory impact class names e.g., “icon–ff-impact-yel” -> Low, “icon–ff-impact-ora” -> Medium, “icon–ff-impact-red” -> High
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Impact
impl<'de> Deserialize<'de> for Impact
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 Ord for Impact
impl Ord for Impact
Source§impl PartialOrd for Impact
impl PartialOrd for Impact
impl Copy for Impact
impl Eq for Impact
impl StructuralPartialEq for Impact
Auto Trait Implementations§
impl Freeze for Impact
impl RefUnwindSafe for Impact
impl Send for Impact
impl Sync for Impact
impl Unpin for Impact
impl UnwindSafe for Impact
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.