pub struct FeatureDeclarations {
pub guaranteed: Vec<FeatureId>,
pub conditional: Vec<ConditionalFeature>,
}Expand description
The provider’s feature declaration (spine §4.1
ProviderManifest.features). The compile-time available feature set is
guaranteed ∪ lockfile.hello.featuresEnabled (spine §4.1 compile rule).
Fields§
§guaranteed: Vec<FeatureId>Features provided unconditionally.
conditional: Vec<ConditionalFeature>Features provided only under declared conditions.
Trait Implementations§
Source§impl Clone for FeatureDeclarations
impl Clone for FeatureDeclarations
Source§fn clone(&self) -> FeatureDeclarations
fn clone(&self) -> FeatureDeclarations
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FeatureDeclarations
impl Debug for FeatureDeclarations
Source§impl<'de> Deserialize<'de> for FeatureDeclarations
impl<'de> Deserialize<'de> for FeatureDeclarations
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for FeatureDeclarations
Source§impl JsonSchema for FeatureDeclarations
impl JsonSchema for FeatureDeclarations
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for FeatureDeclarations
impl PartialEq for FeatureDeclarations
Source§impl Serialize for FeatureDeclarations
impl Serialize for FeatureDeclarations
impl StructuralPartialEq for FeatureDeclarations
Auto Trait Implementations§
impl Freeze for FeatureDeclarations
impl RefUnwindSafe for FeatureDeclarations
impl Send for FeatureDeclarations
impl Sync for FeatureDeclarations
impl Unpin for FeatureDeclarations
impl UnsafeUnpin for FeatureDeclarations
impl UnwindSafe for FeatureDeclarations
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