pub struct Candle {Show 23 fields
pub timestamp: i64,
pub timestamp_ns: u32,
pub width: CandleWidth,
pub symbol: String,
pub open: Option<Decimal>,
pub high: Option<Decimal>,
pub low: Option<Decimal>,
pub close: Option<Decimal>,
pub volume: Decimal,
pub buy_volume: Decimal,
pub sell_volume: Decimal,
pub mid_open: Option<Decimal>,
pub mid_close: Option<Decimal>,
pub mid_high: Option<Decimal>,
pub mid_low: Option<Decimal>,
pub bid_open: Option<Decimal>,
pub bid_close: Option<Decimal>,
pub bid_high: Option<Decimal>,
pub bid_low: Option<Decimal>,
pub ask_open: Option<Decimal>,
pub ask_close: Option<Decimal>,
pub ask_high: Option<Decimal>,
pub ask_low: Option<Decimal>,
}Fields§
§timestamp: i64§timestamp_ns: u32§width: CandleWidth§symbol: String§open: Option<Decimal>§high: Option<Decimal>§low: Option<Decimal>§close: Option<Decimal>§volume: Decimal§buy_volume: Decimal§sell_volume: Decimal§mid_open: Option<Decimal>§mid_close: Option<Decimal>§mid_high: Option<Decimal>§mid_low: Option<Decimal>§bid_open: Option<Decimal>§bid_close: Option<Decimal>§bid_high: Option<Decimal>§bid_low: Option<Decimal>§ask_open: Option<Decimal>§ask_close: Option<Decimal>§ask_high: Option<Decimal>§ask_low: Option<Decimal>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Candle
impl<'de> Deserialize<'de> for Candle
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 JsonSchema for Candle
impl JsonSchema for Candle
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl Ord for Candle
impl Ord for Candle
Source§impl PartialOrd for Candle
impl PartialOrd for Candle
impl Eq for Candle
impl StructuralPartialEq for Candle
Auto Trait Implementations§
impl Freeze for Candle
impl RefUnwindSafe for Candle
impl Send for Candle
impl Sync for Candle
impl Unpin for Candle
impl UnwindSafe for Candle
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