pub struct ChartEquity {
pub key: String,
pub seq: Option<i64>,
pub sequence: Option<i64>,
pub open: Option<f64>,
pub high: Option<f64>,
pub low: Option<f64>,
pub close: Option<f64>,
pub volume: Option<f64>,
pub chart_time: Option<i64>,
pub chart_day: Option<i64>,
pub extra: HashMap<String, Value>,
}Expand description
A CHART_EQUITY minute candle. seq numbers the candles of the
day; Schwab’s published field order for this service is wrong, this
table matches the wire.
Fields§
§key: StringThe subscription key (field 0).
seq: Option<i64>§sequence: Option<i64>Candle index since the pre-market open.
open: Option<f64>§high: Option<f64>§low: Option<f64>§close: Option<f64>§volume: Option<f64>§chart_time: Option<i64>Candle start, epoch milliseconds.
chart_day: Option<i64>Days since the epoch.
extra: HashMap<String, Value>Fields the table does not describe, by wire key.
Implementations§
Source§impl ChartEquity
impl ChartEquity
Sourcepub fn from_content(content: &DataContent) -> Result<Self, Error>
pub fn from_content(content: &DataContent) -> Result<Self, Error>
Decode a content item using ChartEquityFields::FIELDS.
Trait Implementations§
Source§impl Clone for ChartEquity
impl Clone for ChartEquity
Source§impl Debug for ChartEquity
impl Debug for ChartEquity
Source§impl Default for ChartEquity
impl Default for ChartEquity
Source§impl<'de> Deserialize<'de> for ChartEquity
impl<'de> Deserialize<'de> for ChartEquity
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 ChartEquity
Available on crate feature schemars only.
impl JsonSchema for ChartEquity
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 ChartEquity
impl PartialEq for ChartEquity
Source§impl Serialize for ChartEquity
impl Serialize for ChartEquity
impl StructuralPartialEq for ChartEquity
Auto Trait Implementations§
impl Freeze for ChartEquity
impl RefUnwindSafe for ChartEquity
impl Send for ChartEquity
impl Sync for ChartEquity
impl Unpin for ChartEquity
impl UnsafeUnpin for ChartEquity
impl UnwindSafe for ChartEquity
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