pub struct CachedKLine {Show 15 fields
pub time: String,
pub is_blank: bool,
pub open_price: f64,
pub high_price: f64,
pub low_price: f64,
pub close_price: f64,
pub last_close_price: f64,
pub volume: i64,
pub hp_volume: f64,
pub turnover: f64,
pub turnover_rate: f64,
pub pe: f64,
pub timestamp: f64,
pub is_replenish: Option<bool>,
pub direction: Option<i32>,
}Expand description
K 线缓存
Fields§
§time: String§is_blank: bool§open_price: f64§high_price: f64§low_price: f64§close_price: f64§last_close_price: f64§volume: i64§hp_volume: f64§turnover: f64§turnover_rate: f64§pe: f64§timestamp: f64§is_replenish: Option<bool>Backend KlineItem.point_type == 2; None means the field was absent.
direction: Option<i32>Backend event-contract direction (0=None, 1=Yes, 2=No).
None means the wire field was absent; generic KLine remains unaffected.
Trait Implementations§
Source§impl Clone for CachedKLine
impl Clone for CachedKLine
Source§fn clone(&self) -> CachedKLine
fn clone(&self) -> CachedKLine
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 CachedKLine
impl Debug for CachedKLine
Source§impl PartialEq for CachedKLine
impl PartialEq for CachedKLine
Source§fn eq(&self, other: &CachedKLine) -> bool
fn eq(&self, other: &CachedKLine) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CachedKLine
Auto Trait Implementations§
impl Freeze for CachedKLine
impl RefUnwindSafe for CachedKLine
impl Send for CachedKLine
impl Sync for CachedKLine
impl Unpin for CachedKLine
impl UnsafeUnpin for CachedKLine
impl UnwindSafe for CachedKLine
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more