pub struct DataPoint {
pub index: i64,
pub value: Vec<f64>,
}Fields§
§index: i64§value: Vec<f64>Trait Implementations§
Source§impl<'de> Deserialize<'de> for DataPoint
impl<'de> Deserialize<'de> for DataPoint
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 OHLCV for DataPoint
impl OHLCV for DataPoint
fn datetime(&self) -> DateTime<Utc>
fn timestamp(&self) -> i64
fn open(&self) -> f64
fn high(&self) -> f64
fn low(&self) -> f64
fn close(&self) -> f64
fn volume(&self) -> f64
fn validate(&self) -> bool
fn tr(&self, prev_candle: &dyn OHLCV) -> f64
fn tr_close(&self, prev_close: f64) -> f64
fn clv(&self) -> f64
fn ohlc4(&self) -> f64
fn hl2(&self) -> f64
fn tp(&self) -> f64
fn volumed_price(&self) -> f64
fn is_rising(&self) -> bool
fn is_falling(&self) -> bool
impl StructuralPartialEq for DataPoint
Auto Trait Implementations§
impl Freeze for DataPoint
impl RefUnwindSafe for DataPoint
impl Send for DataPoint
impl Sync for DataPoint
impl Unpin for DataPoint
impl UnsafeUnpin for DataPoint
impl UnwindSafe for DataPoint
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