pub struct Config {
pub roots: Vec<PathBuf>,
pub check: bool,
pub verbose: bool,
pub hidden: bool,
pub follow_links: bool,
pub no_backup: bool,
pub strip_doc_comments: bool,
pub backup_suffix: String,
pub exclude_dirs: Vec<String>,
pub include_globs: Vec<String>,
}Fields§
§roots: Vec<PathBuf>One or more files or directories to walk. Each is traversed independently; a file that is reachable from more than one root is processed only once.
check: bool§verbose: bool§follow_links: bool§no_backup: bool§strip_doc_comments: boolWhen true, rustdoc comments (///, //!, /** */, /*! */) are stripped
as well; otherwise they are preserved.
backup_suffix: String§exclude_dirs: Vec<String>§include_globs: Vec<String>Glob patterns (matched against each file’s path relative to root). When
non-empty, only files matching at least one pattern are stripped. Excluded
directories are pruned before this check, so they always win over includes.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin 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