pub struct ChartFutures {
pub key: String,
pub seq: Option<i64>,
pub chart_time: Option<i64>,
pub open: Option<f64>,
pub high: Option<f64>,
pub low: Option<f64>,
pub close: Option<f64>,
pub volume: Option<f64>,
pub extra: HashMap<String, Value>,
}Expand description
A CHART_FUTURES minute candle.
Fields§
§key: StringThe subscription key (field 0).
seq: Option<i64>§chart_time: Option<i64>Candle start, epoch milliseconds.
open: Option<f64>§high: Option<f64>§low: Option<f64>§close: Option<f64>§volume: Option<f64>§extra: HashMap<String, Value>Fields the table does not describe, by wire key.
Implementations§
Source§impl ChartFutures
impl ChartFutures
Sourcepub fn from_content(content: &DataContent) -> Result<Self, Error>
pub fn from_content(content: &DataContent) -> Result<Self, Error>
Decode a content item using ChartFuturesFields::FIELDS.
Trait Implementations§
Source§impl Clone for ChartFutures
impl Clone for ChartFutures
Source§impl Debug for ChartFutures
impl Debug for ChartFutures
Source§impl Default for ChartFutures
impl Default for ChartFutures
Source§impl<'de> Deserialize<'de> for ChartFutures
impl<'de> Deserialize<'de> for ChartFutures
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 ChartFutures
Available on crate feature schemars only.
impl JsonSchema for ChartFutures
Available on crate feature
schemars only.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 inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ChartFutures
impl PartialEq for ChartFutures
Source§impl Serialize for ChartFutures
impl Serialize for ChartFutures
impl StructuralPartialEq for ChartFutures
Auto Trait Implementations§
impl Freeze for ChartFutures
impl RefUnwindSafe for ChartFutures
impl Send for ChartFutures
impl Sync for ChartFutures
impl Unpin for ChartFutures
impl UnsafeUnpin for ChartFutures
impl UnwindSafe for ChartFutures
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