pub struct Config {
pub io: IoConfig,
pub filter: FilterConfig,
pub formats: FormatConfigs,
pub display: DisplayConfig,
pub performance: PerformanceConfig,
pub modules: ModuleConfig,
pub debug: DebugConfig,
pub variables: HashMap<String, Value>,
}Expand description
Main configuration structure for dsq runtime
Fields§
§io: IoConfigInput/output configuration
filter: FilterConfigFilter execution configuration
formats: FormatConfigsFormat-specific configurations
display: DisplayConfigDisplay and output configuration
performance: PerformanceConfigPerformance and resource configuration
modules: ModuleConfigModule and library configuration
debug: DebugConfigDebug and diagnostic configuration
variables: HashMap<String, Value>Variables for filter execution
Implementations§
Source§impl Config
impl Config
Sourcepub fn load_from_file(path: &Path) -> Result<Self>
pub fn load_from_file(path: &Path) -> Result<Self>
Load configuration from a specific file
Sourcepub fn merge_file(&mut self, path: &Path) -> Result<()>
pub fn merge_file(&mut self, path: &Path) -> Result<()>
Merge configuration from file
Sourcepub fn apply_cli(&mut self, cli_config: &CliConfig) -> Result<()>
pub fn apply_cli(&mut self, cli_config: &CliConfig) -> Result<()>
Apply CLI configuration overrides
Sourcepub fn to_read_options(&self) -> ReadOptions
pub fn to_read_options(&self) -> ReadOptions
Convert to ReadOptions for dsq-core
Sourcepub fn to_write_options(&self) -> WriteOptions
pub fn to_write_options(&self) -> WriteOptions
Convert to WriteOptions for dsq-core
Sourcepub fn to_executor_config(&self) -> ExecutorConfig
pub fn to_executor_config(&self) -> ExecutorConfig
Convert to ExecutorConfig for dsq-filter
Sourcepub fn get_format_read_options(&self, format: DataFormat) -> ReadOptions
pub fn get_format_read_options(&self, format: DataFormat) -> ReadOptions
Get format-specific read options
Sourcepub fn get_format_write_options(&self, format: DataFormat) -> WriteOptions
pub fn get_format_write_options(&self, format: DataFormat) -> WriteOptions
Get format-specific write options
Sourcepub fn should_use_color(&self) -> bool
pub fn should_use_color(&self) -> bool
Check if color output should be enabled
Sourcepub fn get_thread_count(&self) -> usize
pub fn get_thread_count(&self) -> usize
Get the number of threads to use
Sourcepub fn get_variables_as_value(&self) -> HashMap<String, Value>
pub fn get_variables_as_value(&self) -> HashMap<String, Value>
Get variables as dsq_core::Value map for filter execution
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
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 Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more