pub struct FeatureRecord {
pub section_name: String,
pub enabled: bool,
pub override_source: Option<OverrideSource>,
pub requires: &'static [&'static str],
pub metadata: Box<FeatureMetadata>,
}Expand description
A snapshot of one optional feature’s resolved state.
Collected by crate::FeatureRegistry as each feature is loaded, so the registry
can produce a startup summary of every registered feature.
Construct via crate::FeatureRecordBuilder rather than struct literal syntax, as
new fields may be added without a semver bump.
Fields§
§section_name: StringThe TOML section key for this feature (e.g. "message_broker").
enabled: boolWhether the feature resolved to enabled after applying all precedence rules.
override_source: Option<OverrideSource>Which external control overrode the natural TOML state, if any.
requires: &'static [&'static str]Section keys this feature declared it depends on via
crate::OptionalSection::requires.
metadata: Box<FeatureMetadata>Static annotations (description, owner, deprecation) declared by the
feature via crate::OptionalSection::metadata.
Trait Implementations§
Source§impl Clone for FeatureRecord
impl Clone for FeatureRecord
Auto Trait Implementations§
impl Forget for FeatureRecord
impl Freeze for FeatureRecord
impl RefUnwindSafe for FeatureRecord
impl Send for FeatureRecord
impl Sync for FeatureRecord
impl Unpin for FeatureRecord
impl UnsafeUnpin for FeatureRecord
impl UnwindSafe for FeatureRecord
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