pub struct LoadedConfig<T> { /* private fields */ }Expand description
Loaded configuration plus its diagnostic report.
Implementations§
Source§impl<T> LoadedConfig<T>
impl<T> LoadedConfig<T>
Sourcepub fn report(&self) -> &ConfigReport
pub fn report(&self) -> &ConfigReport
Returns the diagnostic report associated with the load.
Sourcepub fn into_parts(self) -> (T, ConfigReport)
pub fn into_parts(self) -> (T, ConfigReport)
Splits the loaded configuration into its value and report.
Sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Returns the loaded configuration value, discarding the report.
Source§impl<T> LoadedConfig<T>
impl<T> LoadedConfig<T>
Sourcepub fn export_bundle(&self, options: &EnvDocOptions) -> ExportBundleReport
Available on crate feature schema only.
pub fn export_bundle(&self, options: &EnvDocOptions) -> ExportBundleReport
schema only.Builds a versioned machine-readable export bundle for downstream tools.
Sourcepub fn export_bundle_json(&self, options: &EnvDocOptions) -> Value
Available on crate feature schema only.
pub fn export_bundle_json(&self, options: &EnvDocOptions) -> Value
schema only.Renders the versioned export bundle as JSON.
Sourcepub fn export_bundle_json_pretty(&self, options: &EnvDocOptions) -> String
Available on crate feature schema only.
pub fn export_bundle_json_pretty(&self, options: &EnvDocOptions) -> String
schema only.Renders the versioned export bundle as pretty JSON.
Trait Implementations§
Source§impl<T> Clone for LoadedConfig<T>where
T: Clone,
impl<T> Clone for LoadedConfig<T>where
T: Clone,
Source§impl<T: Debug> Debug for LoadedConfig<T>
impl<T: Debug> Debug for LoadedConfig<T>
Auto Trait Implementations§
impl<T> Freeze for LoadedConfig<T>where
T: Freeze,
impl<T> RefUnwindSafe for LoadedConfig<T>where
T: RefUnwindSafe,
impl<T> Send for LoadedConfig<T>where
T: Send,
impl<T> Sync for LoadedConfig<T>where
T: Sync,
impl<T> Unpin for LoadedConfig<T>where
T: Unpin,
impl<T> UnsafeUnpin for LoadedConfig<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for LoadedConfig<T>where
T: UnwindSafe,
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