pub struct ValidatedCli {
pub command: ValidatedCommand,
pub verbose: bool,
pub config: Option<PathBuf>,
pub cpu_threads: Option<usize>,
pub io_threads: Option<usize>,
pub storage_type: Option<String>,
pub channel_depth: usize,
}Expand description
Validated CLI configuration
This structure holds all CLI arguments after security validation. All paths are canonicalized and all values are range-checked.
Fields§
§command: ValidatedCommand§verbose: bool§config: Option<PathBuf>§cpu_threads: Option<usize>§io_threads: Option<usize>§storage_type: Option<String>§channel_depth: usizeTrait Implementations§
Source§impl Clone for ValidatedCli
impl Clone for ValidatedCli
Source§fn clone(&self) -> ValidatedCli
fn clone(&self) -> ValidatedCli
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 moreAuto Trait Implementations§
impl Freeze for ValidatedCli
impl RefUnwindSafe for ValidatedCli
impl Send for ValidatedCli
impl Sync for ValidatedCli
impl Unpin for ValidatedCli
impl UnwindSafe for ValidatedCli
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