pub struct JsonConfigurationSource { /* private fields */ }Available on crate feature
json only.Expand description
Represents a ConfigurationSource for *.json files.
Implementations§
Source§impl JsonConfigurationSource
impl JsonConfigurationSource
Sourcepub fn new(file: FileSource) -> Self
pub fn new(file: FileSource) -> Self
Initializes a new *.json file configuration source.
§Arguments
file- The*.jsonFileSourceinformation
Trait Implementations§
Source§impl ConfigurationSource for JsonConfigurationSource
impl ConfigurationSource for JsonConfigurationSource
Source§fn build(
&self,
_builder: &dyn ConfigurationBuilder,
) -> Box<dyn ConfigurationProvider>
fn build( &self, _builder: &dyn ConfigurationBuilder, ) -> Box<dyn ConfigurationProvider>
Builds the
ConfigurationProvider for this source. Read moreAuto Trait Implementations§
impl Freeze for JsonConfigurationSource
impl RefUnwindSafe for JsonConfigurationSource
impl Send for JsonConfigurationSource
impl Sync for JsonConfigurationSource
impl Unpin for JsonConfigurationSource
impl UnwindSafe for JsonConfigurationSource
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