pub struct StyleRule {
pub component: String,
pub variant: Option<String>,
pub targets: Vec<String>,
pub exempt: Vec<String>,
pub base: Vec<StyleEffect>,
pub states: Vec<StateStyle>,
pub settle: Option<String>,
pub source: SourceLocation,
}Fields§
§component: StringThe control kind, such as SidebarItem.
variant: Option<String>A named variant that instances select with variant:.
targets: Vec<String>Platforms the rule applies to (macos, ios, windows, linux,
browser); empty for all.
exempt: Vec<String>Platforms that keep their default look for effects they cannot show.
base: Vec<StyleEffect>Effects in every state.
states: Vec<StateStyle>§settle: Option<String>Motion back to the resting state.
source: SourceLocationTrait Implementations§
Source§impl<'de> Deserialize<'de> for StyleRule
impl<'de> Deserialize<'de> for StyleRule
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 StructuralPartialEq for StyleRule
Auto Trait Implementations§
impl Freeze for StyleRule
impl RefUnwindSafe for StyleRule
impl Send for StyleRule
impl Sync for StyleRule
impl Unpin for StyleRule
impl UnsafeUnpin for StyleRule
impl UnwindSafe for StyleRule
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