pub struct StorageConfig {
pub root: PathBuf,
pub default_retention_days: u32,
pub orderbook_snapshot_interval_secs: u64,
}Expand description
Top-level configuration for StorageManager.
Fields§
§root: PathBufRoot directory. Layout: {root}/{exchange}/{account}/{symbol}/{stream_kind}/
default_retention_days: u32How many days to keep daily files before auto-deletion. Default: 30.
orderbook_snapshot_interval_secs: u64How often (seconds) to write orderbook snapshots. Default: 300 (5 min).
Trait Implementations§
Source§impl Clone for StorageConfig
impl Clone for StorageConfig
Source§fn clone(&self) -> StorageConfig
fn clone(&self) -> StorageConfig
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 moreSource§impl Debug for StorageConfig
impl Debug for StorageConfig
Auto Trait Implementations§
impl Freeze for StorageConfig
impl RefUnwindSafe for StorageConfig
impl Send for StorageConfig
impl Sync for StorageConfig
impl Unpin for StorageConfig
impl UnsafeUnpin for StorageConfig
impl UnwindSafe for StorageConfig
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