pub struct ProjectConfig {
pub extra_abbreviations: Vec<String>,
pub ignore_patterns: Vec<String>,
pub default_format: Option<String>,
pub max_width: Option<usize>,
}Expand description
Per-project configuration loaded from .snapperrc.toml.
Fields§
§extra_abbreviations: Vec<String>Additional abbreviations that should not trigger sentence breaks.
ignore_patterns: Vec<String>File patterns to ignore (glob syntax).
default_format: Option<String>Default format override.
max_width: Option<usize>Default max width.
Implementations§
Source§impl ProjectConfig
impl ProjectConfig
Sourcepub fn find_and_load(start_dir: &Path) -> Result<Self>
pub fn find_and_load(start_dir: &Path) -> Result<Self>
Search for .snapperrc.toml starting from start_dir and walking up
to the filesystem root. Returns the default config if none found.
Trait Implementations§
Source§impl Debug for ProjectConfig
impl Debug for ProjectConfig
Source§impl Default for ProjectConfig
impl Default for ProjectConfig
Source§fn default() -> ProjectConfig
fn default() -> ProjectConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ProjectConfig
impl RefUnwindSafe for ProjectConfig
impl Send for ProjectConfig
impl Sync for ProjectConfig
impl Unpin for ProjectConfig
impl UnsafeUnpin for ProjectConfig
impl UnwindSafe for ProjectConfig
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