pub trait Handler {
Show 20 methods
// Required methods
fn get_datetime(&self) -> String;
fn get_code(&self) -> String;
fn get_date(&self) -> String;
fn get_open(&self) -> f64;
fn get_close(&self) -> f64;
fn get_high(&self) -> f64;
fn get_low(&self) -> f64;
fn get_vol(&self) -> f64;
fn get_amount(&self) -> f64;
// Provided methods
fn to_json(&self) -> String
where Self: Serialize { ... }
fn set_datetime(&mut self, datetime: String) { ... }
fn set_code(&mut self, code: String) { ... }
fn set_date(&mut self, date: String) { ... }
fn set_open(&mut self, open: f64) { ... }
fn set_close(&mut self, close: f64) { ... }
fn set_high(&mut self, high: f64) { ... }
fn set_low(&mut self, low: f64) { ... }
fn set_vol(&mut self, vol: f64) { ... }
fn set_amount(&mut self, amount: f64) { ... }
fn to_hqchart_trend_slice(&self) -> HqTrendSlice { ... }
}Required Methods§
fn get_datetime(&self) -> String
fn get_code(&self) -> String
fn get_date(&self) -> String
fn get_open(&self) -> f64
fn get_close(&self) -> f64
fn get_high(&self) -> f64
fn get_low(&self) -> f64
fn get_vol(&self) -> f64
fn get_amount(&self) -> f64
Provided Methods§
fn to_json(&self) -> Stringwhere
Self: Serialize,
fn set_datetime(&mut self, datetime: String)
fn set_code(&mut self, code: String)
fn set_date(&mut self, date: String)
fn set_open(&mut self, open: f64)
fn set_close(&mut self, close: f64)
fn set_high(&mut self, high: f64)
fn set_low(&mut self, low: f64)
fn set_vol(&mut self, vol: f64)
fn set_amount(&mut self, amount: f64)
fn to_hqchart_trend_slice(&self) -> HqTrendSlice
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.