pub struct PriceBar {
pub exchange: String,
pub symbol: String,
pub timeframe: Timeframe,
pub ts: NaiveDateTime,
pub available_at: NaiveDateTime,
pub open: f64,
pub high: f64,
pub low: f64,
pub close: f64,
pub tick_count: Option<u64>,
pub spread: Option<i32>,
}Expand description
Additive price-only bar representation with an explicit optional source count.
Fields§
§exchange: String§symbol: String§timeframe: Timeframe§ts: NaiveDateTime§available_at: NaiveDateTime§open: f64§high: f64§low: f64§close: f64§tick_count: Option<u64>§spread: Option<i32>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PriceBar
impl<'de> Deserialize<'de> for PriceBar
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
impl StructuralPartialEq for PriceBar
Auto Trait Implementations§
impl Freeze for PriceBar
impl RefUnwindSafe for PriceBar
impl Send for PriceBar
impl Sync for PriceBar
impl Unpin for PriceBar
impl UnsafeUnpin for PriceBar
impl UnwindSafe for PriceBar
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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