Struct chromiumoxide_cdp::cdp::browser_protocol::css::CssRule [−][src]
pub struct CssRule { pub style_sheet_id: Option<StyleSheetId>, pub selector_list: SelectorList, pub origin: StyleSheetOrigin, pub style: CssStyle, pub media: Option<Vec<CssMedia>>, }
Expand description
CSS rule representation. CSSRule
Fields
style_sheet_id: Option<StyleSheetId>
The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.
selector_list: SelectorList
Rule selector data.
origin: StyleSheetOrigin
Parent stylesheet’s origin.
style: CssStyle
Associated style declaration.
media: Option<Vec<CssMedia>>
Media list array (for rules involving media queries). The array enumerates media queries starting with the innermost one, going outwards.
Implementations
pub fn new(
selector_list: impl Into<SelectorList>,
origin: impl Into<StyleSheetOrigin>,
style: impl Into<CssStyle>
) -> Self
Trait Implementations
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 RefUnwindSafe for CssRule
impl UnwindSafe for CssRule
Blanket Implementations
Mutably borrows from an owned value. Read more