#[non_exhaustive]pub struct FeatureGovernanceState {
pub support_id: FeatureId,
pub support_name: &'static str,
pub support_description: &'static str,
pub support_status: SupportStatus,
pub doc_ref: Option<&'static str>,
pub rationale: &'static str,
pub required_feature_flags: &'static [Feature],
pub missing_feature_flags: Vec<Feature>,
pub runtime_enabled: bool,
}Expand description
Runtime-aware governance state for a support matrix feature row.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.support_id: FeatureIdCanonical support feature identifier from the support matrix.
support_name: &'static strHuman-readable support feature name.
support_description: &'static strShort support feature description.
support_status: SupportStatusStatic support status from the support matrix.
doc_ref: Option<&'static str>Reference to canonical docs row, when available.
rationale: &'static strWhy this support item is linked to feature flags.
required_feature_flags: &'static [Feature]Runtime flags required to express this feature in an environment.
missing_feature_flags: Vec<Feature>Runtime flags currently disabling this support item.
runtime_enabled: boolWhether this support feature is currently fully enabled by active flags.
Implementations§
Source§impl FeatureGovernanceState
impl FeatureGovernanceState
Sourcepub fn from_support(feature: &'static FeatureSupport) -> Self
pub fn from_support(feature: &'static FeatureSupport) -> Self
Build a non-governed runtime state row directly from static support metadata.
Trait Implementations§
Source§impl Clone for FeatureGovernanceState
impl Clone for FeatureGovernanceState
Source§fn clone(&self) -> FeatureGovernanceState
fn clone(&self) -> FeatureGovernanceState
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 moreSource§impl Debug for FeatureGovernanceState
impl Debug for FeatureGovernanceState
Auto Trait Implementations§
impl Freeze for FeatureGovernanceState
impl RefUnwindSafe for FeatureGovernanceState
impl Send for FeatureGovernanceState
impl Sync for FeatureGovernanceState
impl Unpin for FeatureGovernanceState
impl UnsafeUnpin for FeatureGovernanceState
impl UnwindSafe for FeatureGovernanceState
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