pub struct Config {
pub execution_mode: ExecutionMode,
pub log_level: LogLevel,
pub root_path: Option<PathBuf>,
pub guide_path: Option<PathBuf>,
pub original_guide_path: Option<String>,
pub original_root_path: Option<String>,
}
Expand description
Configuration for the CLI tool
Fields§
§execution_mode: ExecutionMode
The execution mode
log_level: LogLevel
The log level
root_path: Option<PathBuf>
The root directory for operations
guide_path: Option<PathBuf>
The path to the navigation guide file
original_guide_path: Option<String>
The original guide path as provided by the user (for error messages)
original_root_path: Option<String>
The original root path as provided by the user (for error messages)
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§
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