pub struct GeneralConfig {
pub backup_enabled: bool,
pub max_concurrent_jobs: usize,
pub task_timeout_seconds: u64,
pub workspace: PathBuf,
pub enable_progress_bar: bool,
pub worker_idle_timeout_seconds: u64,
}
Expand description
General configuration settings for the SubX CLI tool.
This struct contains general settings that control the overall behavior of the application, including backup policies, processing limits, and user interface preferences.
§Examples
use subx_cli::config::GeneralConfig;
let config = GeneralConfig::default();
assert_eq!(config.max_concurrent_jobs, 4);
assert!(!config.backup_enabled);
Fields§
§backup_enabled: bool
Enable automatic backup of original files.
max_concurrent_jobs: usize
Maximum number of concurrent processing jobs.
task_timeout_seconds: u64
Task timeout in seconds.
workspace: PathBuf
Workspace directory for CLI commands (override current working directory).
enable_progress_bar: bool
Enable progress bar display.
worker_idle_timeout_seconds: u64
Worker idle timeout in seconds.
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§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for GeneralConfig
impl Debug for GeneralConfig
Source§impl Default for GeneralConfig
impl Default 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