Enum smart_config::value::ValueOrigin
source · #[non_exhaustive]pub enum ValueOrigin {
Unknown,
EnvVars,
Fallbacks,
File {
name: String,
format: FileFormat,
},
Path {
source: Arc<Self>,
path: String,
},
Synthetic {
source: Arc<Self>,
transform: String,
},
}
Expand description
Origin of a Value
in configuration input.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unknown
Unknown / default origin.
EnvVars
Environment variables.
Fallbacks
Fallbacks for config params.
File
File source.
Fields
§
format: FileFormat
File format.
Path
Path from a structured source.
Fields
Synthetic
Synthetic value.
Trait Implementations§
source§impl Debug for ValueOrigin
impl Debug for ValueOrigin
source§impl Default for ValueOrigin
impl Default for ValueOrigin
source§fn default() -> ValueOrigin
fn default() -> ValueOrigin
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ValueOrigin
impl RefUnwindSafe for ValueOrigin
impl Send for ValueOrigin
impl Sync for ValueOrigin
impl Unpin for ValueOrigin
impl UnwindSafe for ValueOrigin
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