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§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 Forget for ConfigLoadOptions
impl Freeze for ConfigLoadOptions
impl Move 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.