pub struct Config { /* private fields */ }Expand description
Configuration file
Implementations§
Source§impl Config
impl Config
Sourcepub fn from_workingtree(tree: &dyn WorkingTree, subpath: &Path) -> Result<Self>
pub fn from_workingtree(tree: &dyn WorkingTree, subpath: &Path) -> Result<Self>
Load configuration from a working tree
Sourcepub fn load_from_path(path: &Path) -> Result<Self, Error>
pub fn load_from_path(path: &Path) -> Result<Self, Error>
Load configuration from a path
Sourcepub fn compat_release(&self) -> Option<String>
pub fn compat_release(&self) -> Option<String>
Return the compatibility release.
Sourcepub fn allow_reformatting(&self) -> Option<bool>
pub fn allow_reformatting(&self) -> Option<bool>
Return whether reformatting is allowed.
Sourcepub fn minimum_certainty(&self) -> Option<Certainty>
pub fn minimum_certainty(&self) -> Option<Certainty>
Return the minimum certainty level for changes to be applied.
Sourcepub fn update_changelog(&self) -> Option<bool>
pub fn update_changelog(&self) -> Option<bool>
Return whether the changelog should be updated.
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§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more