File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ pub struct Candle {
1616 pub timestamp : Option < i64 > ,
1717}
1818
19- pub enum CandleType {
19+ pub ( crate ) enum CandleType {
2020 Bearish ,
2121 Bullish ,
2222}
@@ -41,7 +41,7 @@ impl Candle {
4141 }
4242 }
4343
44- pub fn get_type ( & self ) -> CandleType {
44+ pub ( crate ) fn get_type ( & self ) -> CandleType {
4545 match self . open < self . close {
4646 true => CandleType :: Bullish ,
4747 false => CandleType :: Bearish ,
Original file line number Diff line number Diff line change @@ -7,5 +7,4 @@ mod volume_pane;
77mod y_axis;
88
99pub use chart:: Candle ;
10- pub use chart:: CandleType ;
1110pub use chart:: Chart ;
Original file line number Diff line number Diff line change 1- use crate :: { chart_data:: ChartData , Candle , CandleType } ;
1+ use crate :: { chart :: CandleType , chart_data:: ChartData , Candle } ;
22use colored:: Colorize ;
33use std:: { cell:: RefCell , rc:: Rc } ;
44
You can’t perform that action at this time.
0 commit comments