pub struct SeriesGeometry {
pub source: SourceId,
pub symbol: String,
pub timeframe: Timeframe,
pub price_basis: PriceBasis,
pub alignment_offset_seconds: i32,
}Expand description
Historical series geometry for one configured logical source.
Fields§
§source: SourceId§symbol: String§timeframe: Timeframe§price_basis: PriceBasis§alignment_offset_seconds: i32Implementations§
Source§impl SeriesGeometry
impl SeriesGeometry
pub fn new( source: SourceId, symbol: impl Into<String>, timeframe: Timeframe, price_basis: PriceBasis, alignment_offset_seconds: i32, ) -> Self
Sourcepub fn is_aligned(&self, timestamp: NaiveDateTime) -> bool
pub fn is_aligned(&self, timestamp: NaiveDateTime) -> bool
Whether a timestamp is exactly on this fixed-duration series’ aligned bucket boundary.
Trait Implementations§
Source§impl Clone for SeriesGeometry
impl Clone for SeriesGeometry
Source§impl Debug for SeriesGeometry
impl Debug for SeriesGeometry
impl Eq for SeriesGeometry
Source§impl PartialEq for SeriesGeometry
impl PartialEq for SeriesGeometry
impl StructuralPartialEq for SeriesGeometry
Auto Trait Implementations§
impl Freeze for SeriesGeometry
impl RefUnwindSafe for SeriesGeometry
impl Send for SeriesGeometry
impl Sync for SeriesGeometry
impl Unpin for SeriesGeometry
impl UnsafeUnpin for SeriesGeometry
impl UnwindSafe for SeriesGeometry
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.