pub enum FeatureRelations {
Requires {
features: Option<Vec<FeatureName>>,
groups: Option<Vec<FeatureGroupName>>,
},
}
Expand description
Represents the relations defined for a feature.
Variants§
Requires
Defines the features and feature groups that a features requires.
Fields
§
features: Option<Vec<FeatureName>>
Features required by the feature.
§
groups: Option<Vec<FeatureGroupName>>
Feature groups required by the feature.
Trait Implementations§
Source§impl Clone for FeatureRelations
impl Clone for FeatureRelations
Source§fn clone(&self) -> FeatureRelations
fn clone(&self) -> FeatureRelations
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 FeatureRelations
impl Debug for FeatureRelations
Source§impl<'de> Deserialize<'de> for FeatureRelations
impl<'de> Deserialize<'de> for FeatureRelations
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
Auto Trait Implementations§
impl Freeze for FeatureRelations
impl RefUnwindSafe for FeatureRelations
impl Send for FeatureRelations
impl Sync for FeatureRelations
impl Unpin for FeatureRelations
impl UnwindSafe for FeatureRelations
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