pub struct VariantDefinition {
pub name: String,
pub variant_type: VariantType,
pub selector_pattern: String,
pub media_query: Option<String>,
pub specificity: u32,
pub combinable: bool,
pub dependencies: Vec<String>,
}Expand description
Variant definition
Fields§
§name: StringVariant name
variant_type: VariantTypeVariant type
selector_pattern: StringCSS selector pattern
media_query: Option<String>Media query (for responsive variants)
specificity: u32Specificity weight
combinable: boolWhether this variant can be combined with others
dependencies: Vec<String>Dependencies (other variants that must be present)
Trait Implementations§
Source§impl Clone for VariantDefinition
impl Clone for VariantDefinition
Source§fn clone(&self) -> VariantDefinition
fn clone(&self) -> VariantDefinition
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 VariantDefinition
impl Debug for VariantDefinition
Source§impl<'de> Deserialize<'de> for VariantDefinition
impl<'de> Deserialize<'de> for VariantDefinition
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
Source§impl PartialEq for VariantDefinition
impl PartialEq for VariantDefinition
Source§impl Serialize for VariantDefinition
impl Serialize for VariantDefinition
impl StructuralPartialEq for VariantDefinition
Auto Trait Implementations§
impl Freeze for VariantDefinition
impl RefUnwindSafe for VariantDefinition
impl Send for VariantDefinition
impl Sync for VariantDefinition
impl Unpin for VariantDefinition
impl UnwindSafe for VariantDefinition
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