#[non_exhaustive]pub struct IndexCandleUpdate {
pub ts: NumberString,
pub o: NumberString,
pub h: NumberString,
pub l: NumberString,
pub c: NumberString,
pub confirm: NumberString,
}Expand description
index-candle* channel row.
OKX pushes a 6-element array [ts, o, h, l, c, confirm] — no volume fields.
OKX docs: https://www.okx.com/docs-v5/en/#order-book-trading-public-data-ws-index-candlesticks-channel
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.ts: NumberStringOpening time of the candlestick (Unix milliseconds).
o: NumberStringOpen price.
h: NumberStringHighest price.
l: NumberStringLowest price.
c: NumberStringClose price.
confirm: NumberStringCandlestick state: 0 incomplete (still forming), 1 completed.
Trait Implementations§
Source§impl Clone for IndexCandleUpdate
impl Clone for IndexCandleUpdate
Source§fn clone(&self) -> IndexCandleUpdate
fn clone(&self) -> IndexCandleUpdate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IndexCandleUpdate
impl Debug for IndexCandleUpdate
Source§impl Default for IndexCandleUpdate
impl Default for IndexCandleUpdate
Source§fn default() -> IndexCandleUpdate
fn default() -> IndexCandleUpdate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for IndexCandleUpdate
impl<'de> Deserialize<'de> for IndexCandleUpdate
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 From<Vec<NumberString>> for IndexCandleUpdate
impl From<Vec<NumberString>> for IndexCandleUpdate
Source§fn from(values: Vec<NumberString>) -> Self
fn from(values: Vec<NumberString>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for IndexCandleUpdate
impl RefUnwindSafe for IndexCandleUpdate
impl Send for IndexCandleUpdate
impl Sync for IndexCandleUpdate
impl Unpin for IndexCandleUpdate
impl UnsafeUnpin for IndexCandleUpdate
impl UnwindSafe for IndexCandleUpdate
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