#[non_exhaustive]pub struct IndexCandle {
pub ts: NumberString,
pub open: NumberString,
pub high: NumberString,
pub low: NumberString,
pub close: NumberString,
pub confirm: NumberString,
}Expand description
A single candlestick bar for index/mark-price endpoints (6-element array).
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 timestamp (Unix milliseconds).
open: NumberStringOpen price.
high: NumberStringHighest price.
low: NumberStringLowest price.
close: NumberStringClose price.
confirm: NumberString1 if the bar is closed/confirmed, 0 otherwise.
Trait Implementations§
Source§impl Clone for IndexCandle
impl Clone for IndexCandle
Source§fn clone(&self) -> IndexCandle
fn clone(&self) -> IndexCandle
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 IndexCandle
impl Debug for IndexCandle
Source§impl<'de> Deserialize<'de> for IndexCandle
impl<'de> Deserialize<'de> for IndexCandle
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<(NumberString, NumberString, NumberString, NumberString, NumberString, NumberString)> for IndexCandle
impl From<(NumberString, NumberString, NumberString, NumberString, NumberString, NumberString)> for IndexCandle
Source§fn from(
raw: (NumberString, NumberString, NumberString, NumberString, NumberString, NumberString),
) -> Self
fn from( raw: (NumberString, NumberString, NumberString, NumberString, NumberString, NumberString), ) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for IndexCandle
impl RefUnwindSafe for IndexCandle
impl Send for IndexCandle
impl Sync for IndexCandle
impl Unpin for IndexCandle
impl UnsafeUnpin for IndexCandle
impl UnwindSafe for IndexCandle
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