pub struct BarQuality {
pub volume_available: bool,
pub is_synthetic: bool,
pub is_forward_filled: bool,
pub has_gap: bool,
}Expand description
Explicit availability/quality metadata for an OHLCV bar, replacing implicit f64
conventions (e.g. volume == 0.0 meaning “unknown” versus “genuinely zero”).
Fields§
§volume_available: boolFalse when the feed cannot report volume for this bar (as opposed to a true zero-volume bar). Consumers should fall back to equal-weight/price-based heuristics when false.
is_synthetic: boolTrue when the bar was synthesized (e.g. holiday padding, session stitching) rather than observed directly from the feed.
is_forward_filled: boolTrue when the bar’s price/volume was forward-filled from a prior bar rather than observed.
has_gap: boolTrue when a time gap precedes this bar (missing bar(s) between it and the prior bar).
Implementations§
Source§impl BarQuality
impl BarQuality
Trait Implementations§
Source§impl Clone for BarQuality
impl Clone for BarQuality
Source§fn clone(&self) -> BarQuality
fn clone(&self) -> BarQuality
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 moreimpl Copy for BarQuality
Source§impl Debug for BarQuality
impl Debug for BarQuality
Source§impl Default for BarQuality
impl Default for BarQuality
Source§fn default() -> BarQuality
fn default() -> BarQuality
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BarQuality
impl<'de> Deserialize<'de> for BarQuality
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 Eq for BarQuality
Source§impl PartialEq for BarQuality
impl PartialEq for BarQuality
Source§impl Serialize for BarQuality
impl Serialize for BarQuality
impl StructuralPartialEq for BarQuality
Auto Trait Implementations§
impl Freeze for BarQuality
impl RefUnwindSafe for BarQuality
impl Send for BarQuality
impl Sync for BarQuality
impl Unpin for BarQuality
impl UnsafeUnpin for BarQuality
impl UnwindSafe for BarQuality
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