1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
/// Trend enum #[derive(Debug, PartialEq, Clone)] pub enum Trend { Bullish, Bearish, } impl ToString for Trend { fn to_string(&self) -> String { match self { Trend::Bullish => "bullish".to_string(), Trend::Bearish => "bearish".to_string(), } } }