pub struct XmlConfigurationProvider { /* private fields */ }
Available on crate feature
xml
only.Expand description
Represents a ConfigurationProvider
for *.xml
files.
Implementations§
Source§impl XmlConfigurationProvider
impl XmlConfigurationProvider
Sourcepub fn new(file: FileSource) -> Self
pub fn new(file: FileSource) -> Self
Initializes a new *.xml
file configuration provider.
§Arguments
file
- The*.xml
FileSource
information
Trait Implementations§
Source§impl ConfigurationProvider for XmlConfigurationProvider
impl ConfigurationProvider for XmlConfigurationProvider
Source§fn get(&self, key: &str) -> Option<Value>
fn get(&self, key: &str) -> Option<Value>
Attempts to get a configuration value with the specified key. Read more
Source§fn reload_token(&self) -> Box<dyn ChangeToken>
fn reload_token(&self) -> Box<dyn ChangeToken>
Returns a
ChangeToken
if this provider supports change tracking.Source§fn load(&mut self) -> LoadResult
fn load(&mut self) -> LoadResult
Loads the configuration values from the implemented source.
Source§fn child_keys(&self, earlier_keys: &mut Vec<String>, parent_path: Option<&str>)
fn child_keys(&self, earlier_keys: &mut Vec<String>, parent_path: Option<&str>)
Gets the immediate descendent configuration keys for a given parent path based
on this
ConfigurationProvider
and the set of keys returned by all of the
preceding ConfigurationProvider
. Read moreAuto Trait Implementations§
impl Freeze for XmlConfigurationProvider
impl !RefUnwindSafe for XmlConfigurationProvider
impl !Send for XmlConfigurationProvider
impl !Sync for XmlConfigurationProvider
impl Unpin for XmlConfigurationProvider
impl !UnwindSafe for XmlConfigurationProvider
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