pub struct ConfigValue {
pub key: String,
pub value: String,
pub file_value: Option<String>,
pub env_override: Option<(String, String)>,
pub source: ConfigSource,
}Expand description
A resolved configuration value with source information.
Fields§
§key: StringThe dot-path key (e.g., “safety.preset”).
value: StringThe current effective value.
file_value: Option<String>The value from the config file, if explicitly set.
env_override: Option<(String, String)>Environment variable override, if any: (var_name, var_value).
source: ConfigSourceWhere the effective value comes from.
Trait Implementations§
Source§impl Clone for ConfigValue
impl Clone for ConfigValue
Source§fn clone(&self) -> ConfigValue
fn clone(&self) -> ConfigValue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ConfigValue
impl RefUnwindSafe for ConfigValue
impl Send for ConfigValue
impl Sync for ConfigValue
impl Unpin for ConfigValue
impl UnwindSafe for ConfigValue
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