Struct config::File
[−]
[src]
pub struct File<T> where
T: FileSource, { /* fields omitted */ }
Methods
impl File<FileSourceString>
[src]
fn from_str(s: &str, format: FileFormat) -> Self
[src]
impl File<FileSourceFile>
[src]
fn new(name: &str, format: FileFormat) -> Self
[src]
fn with_name(name: &str) -> Self
[src]
Given the basename of a file, will attempt to locate a file by setting its extension to a registered format.
impl<T: FileSource> File<T>
[src]
Trait Implementations
impl<T: Clone> Clone for File<T> where
T: FileSource,
[src]
T: FileSource,
fn clone(&self) -> File<T>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T: Debug> Debug for File<T> where
T: FileSource,
[src]
T: FileSource,
impl<'a> From<&'a Path> for File<FileSourceFile>
[src]
impl From<PathBuf> for File<FileSourceFile>
[src]
impl<T: FileSource> Source for File<T> where
T: 'static,
T: Sync + Send,
[src]
T: 'static,
T: Sync + Send,
fn clone_into_box(&self) -> Box<Source + Send + Sync>
[src]
fn collect(&self) -> Result<HashMap<String, Value>, ConfigError>
[src]
Collect all configuration properties available from this source and return a HashMap. Read more