pub struct GeneralConfig {
pub name: String,
pub version: String,
pub collect_trades: bool,
pub collect_orderbooks: bool,
pub auto_discover_symbols: bool,
pub max_concurrent_connections: usize,
pub buffer_size: usize,
pub batch_size: usize,
pub flush_interval_ms: u64,
}Expand description
General application configuration
Fields§
§name: StringApplication name
version: StringApplication version
collect_trades: boolWhether to collect trade data
collect_orderbooks: boolWhether to collect order book data
auto_discover_symbols: boolWhether to automatically discover symbols from exchanges
max_concurrent_connections: usizeMaximum number of concurrent connections to maintain
buffer_size: usizeSize of the internal buffer for market data
batch_size: usizeSize of batches for processing market data
flush_interval_ms: u64Interval in milliseconds for flushing data to storage
Trait Implementations§
Source§impl Clone for GeneralConfig
impl Clone for GeneralConfig
Source§fn clone(&self) -> GeneralConfig
fn clone(&self) -> GeneralConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GeneralConfig
impl Debug for GeneralConfig
Source§impl<'de> Deserialize<'de> for GeneralConfig
impl<'de> Deserialize<'de> for GeneralConfig
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
Auto Trait Implementations§
impl Freeze for GeneralConfig
impl RefUnwindSafe for GeneralConfig
impl Send for GeneralConfig
impl Sync for GeneralConfig
impl Unpin for GeneralConfig
impl UnwindSafe for GeneralConfig
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