pub struct ConfigLoadOptions {
pub roots: ConfigRoots,
pub read_files: bool,
pub single_file: Option<PathBuf>,
pub site_sources: Vec<Symbol>,
}Expand description
Source-selection options for runtime configuration discovery.
Fields§
§roots: ConfigRootsHome and working config roots.
read_files: boolWhether filesystem config roots should be read.
single_file: Option<PathBuf>Explicit shared config file to read after root files.
site_sources: Vec<Symbol>Site exports that return config Dir expressions when called with
config/dir.
Implementations§
Source§impl ConfigLoadOptions
impl ConfigLoadOptions
Sourcepub fn with_roots(roots: ConfigRoots) -> Self
pub fn with_roots(roots: ConfigRoots) -> Self
Builds options from explicit roots.
Trait Implementations§
Source§impl Clone for ConfigLoadOptions
impl Clone for ConfigLoadOptions
Source§fn clone(&self) -> ConfigLoadOptions
fn clone(&self) -> ConfigLoadOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConfigLoadOptions
impl Debug for ConfigLoadOptions
Source§impl Default for ConfigLoadOptions
impl Default for ConfigLoadOptions
impl Eq for ConfigLoadOptions
Source§impl PartialEq for ConfigLoadOptions
impl PartialEq for ConfigLoadOptions
impl StructuralPartialEq for ConfigLoadOptions
Auto Trait Implementations§
impl Freeze for ConfigLoadOptions
impl RefUnwindSafe for ConfigLoadOptions
impl Send for ConfigLoadOptions
impl Sync for ConfigLoadOptions
impl Unpin for ConfigLoadOptions
impl UnsafeUnpin for ConfigLoadOptions
impl UnwindSafe for ConfigLoadOptions
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