pub enum OverrideSource {
EnvVar {
var_name: String,
value: String,
},
ExplicitTomlFlag,
ValidationError {
reason: String,
},
}Expand description
Records which external control overrode a feature’s natural TOML state.
When crate::FeatureRecord::override_source is Some, the feature’s
enabled/disabled state was forced by one of these mechanisms rather than
simple section presence.
Variants§
EnvVar
An environment variable forced this feature on or off.
Fields
ExplicitTomlFlag
The TOML section is present but enabled = false was set explicitly.
ValidationError
The section was present and deserialised but validate_enabled failed,
and the feature’s OnError policy is OnError::Disable.
Trait Implementations§
Source§impl Clone for OverrideSource
impl Clone for OverrideSource
Auto Trait Implementations§
impl Forget for OverrideSource
impl Freeze for OverrideSource
impl RefUnwindSafe for OverrideSource
impl Send for OverrideSource
impl Sync for OverrideSource
impl Unpin for OverrideSource
impl UnsafeUnpin for OverrideSource
impl UnwindSafe for OverrideSource
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