Handler

Trait Handler 

Source
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§

Source

fn get_datetime(&self) -> String

Source

fn get_code(&self) -> String

Source

fn get_date(&self) -> String

Source

fn get_open(&self) -> f64

Source

fn get_close(&self) -> f64

Source

fn get_high(&self) -> f64

Source

fn get_low(&self) -> f64

Source

fn get_vol(&self) -> f64

Source

fn get_amount(&self) -> f64

Provided Methods§

Source

fn to_json(&self) -> String
where Self: Serialize,

Source

fn set_datetime(&mut self, datetime: String)

Source

fn set_code(&mut self, code: String)

Source

fn set_date(&mut self, date: String)

Source

fn set_open(&mut self, open: f64)

Source

fn set_close(&mut self, close: f64)

Source

fn set_high(&mut self, high: f64)

Source

fn set_low(&mut self, low: f64)

Source

fn set_vol(&mut self, vol: f64)

Source

fn set_amount(&mut self, amount: f64)

Source

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.

Implementors§