pub struct Settings {
pub file: PathBuf,
pub autoload_hook: Option<bool>,
pub autoload: Option<bool>,
pub autoload_args: Option<String>,
pub clear_ignore: Option<Vec<String>>,
}
Fields§
§file: PathBuf
§autoload_hook: Option<bool>
§autoload: Option<bool>
§autoload_args: Option<String>
§clear_ignore: Option<Vec<String>>
Implementations§
source§impl Settings
impl Settings
pub fn load(config_dir: &Path, output: &mut Output) -> Self
pub fn from_document(file: PathBuf, document: &Document) -> Self
pub fn resolve_precedence<'a>(&'a self, fallback: &'a Self) -> RealizedSettings
pub fn set_values<T: AsRef<str>>(&self, pairs: &[(T, T)], output: &mut Output)
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnwindSafe for Settings
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