Struct exar::PartialCollectionConfig
[−]
[src]
pub struct PartialCollectionConfig {
pub logs_path: Option<String>,
pub index_granularity: Option<u64>,
pub routing_strategy: Option<RoutingStrategy>,
pub scanners: Option<PartialScannersConfig>,
}Exar DB's partial collection configuration. Holds overrides for the main database configuration.
Examples
extern crate exar; use exar::*; let config = PartialCollectionConfig { logs_path: Some("/path/to/logs".to_owned()), index_granularity: Some(100000), routing_strategy: Some(RoutingStrategy::default()), scanners: Some(PartialScannersConfig { nr_of_scanners: Some(2), sleep_time_in_ms: Some(10) }) };
Fields
logs_path: Option<String>
Path to the logs directory.
index_granularity: Option<u64>
Granularity of the log lines index (used by IndexedLineReader).
routing_strategy: Option<RoutingStrategy>
Subscriptions' routing strategy.
scanners: Option<PartialScannersConfig>
Log scanners' configuration.
Trait Implementations
impl Decodable for PartialCollectionConfig[src]
fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<PartialCollectionConfig, __D::Error>
impl Encodable for PartialCollectionConfig[src]
impl Eq for PartialCollectionConfig[src]
impl PartialEq for PartialCollectionConfig[src]
fn eq(&self, __arg_0: &PartialCollectionConfig) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &PartialCollectionConfig) -> bool
This method tests for !=.
impl Debug for PartialCollectionConfig[src]
impl Clone for PartialCollectionConfig[src]
fn clone(&self) -> PartialCollectionConfig
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more