pub struct TicksWriter { /* private fields */ }Expand description
Helper for normalizing and persisting tick data to parquet files.
Implementations§
Source§impl TicksWriter
impl TicksWriter
Sourcepub fn new(path: impl Into<PathBuf>) -> Self
pub fn new(path: impl Into<PathBuf>) -> Self
Build a writer bound to the provided destination path.
Sourcepub fn push(&mut self, trade_id: Option<String>, tick: Tick)
pub fn push(&mut self, trade_id: Option<String>, tick: Tick)
Append a single tick, skipping duplicates that reuse the same trade identifier.
Auto Trait Implementations§
impl Freeze for TicksWriter
impl RefUnwindSafe for TicksWriter
impl Send for TicksWriter
impl Sync for TicksWriter
impl Unpin for TicksWriter
impl UnwindSafe for TicksWriter
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