pub struct RawFeature {
pub value: Option<Value>,
pub record: Box<FeatureRecord>,
}Expand description
Raw output of a feature load before generic deserialisation.
Used internally by crate::LoaderOps::load_feature_raw to return
type-erased feature data that crate::DefaultLoader then deserialises
into the concrete section type.
Fields are pub (not pub(crate)) because real, technology-specific
LoaderOps implementors (e.g. configbuilder-svc-loader-spi) construct
this type directly from a separate crate.
Fields§
§value: Option<Value>The raw TOML value when the feature is enabled, or None when disabled.
record: Box<FeatureRecord>Metadata record describing the feature’s resolved state.
Auto Trait Implementations§
impl Forget for RawFeature
impl Freeze for RawFeature
impl RefUnwindSafe for RawFeature
impl Send for RawFeature
impl Sync for RawFeature
impl Unpin for RawFeature
impl UnsafeUnpin for RawFeature
impl UnwindSafe for RawFeature
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