pub struct GetMatchedStylesForNodeReturn { /* private fields */ }Available on crate features
experimental and CSS and DOM and Page only.Expand description
Returns requested styles for a DOM node identified by nodeId.
Implementations§
Source§impl GetMatchedStylesForNodeReturn
impl GetMatchedStylesForNodeReturn
pub fn builder() -> GetMatchedStylesForNodeReturnBuilder
Sourcepub fn inline_style(&self) -> Option<&CssStyle>
pub fn inline_style(&self) -> Option<&CssStyle>
Inline style for the specified DOM node.
Sourcepub fn attributes_style(&self) -> Option<&CssStyle>
pub fn attributes_style(&self) -> Option<&CssStyle>
Attribute-defined element style (e.g. resulting from “width=20 height=100%”).
Sourcepub fn matched_css_rules(&self) -> Option<&Vec<RuleMatch>>
pub fn matched_css_rules(&self) -> Option<&Vec<RuleMatch>>
CSS rules matching this node, from all applicable stylesheets.
Sourcepub fn pseudo_elements(&self) -> Option<&Vec<PseudoElementMatches>>
pub fn pseudo_elements(&self) -> Option<&Vec<PseudoElementMatches>>
Pseudo style matches for this node.
Sourcepub fn inherited(&self) -> Option<&Vec<InheritedStyleEntry>>
pub fn inherited(&self) -> Option<&Vec<InheritedStyleEntry>>
A chain of inherited styles (from the immediate node parent up to the DOM tree root).
Sourcepub fn css_keyframes_rules(&self) -> Option<&Vec<CssKeyframesRule>>
pub fn css_keyframes_rules(&self) -> Option<&Vec<CssKeyframesRule>>
A list of CSS keyframed animations matching this node.
Trait Implementations§
Source§impl Clone for GetMatchedStylesForNodeReturn
impl Clone for GetMatchedStylesForNodeReturn
Source§fn clone(&self) -> GetMatchedStylesForNodeReturn
fn clone(&self) -> GetMatchedStylesForNodeReturn
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<'de> Deserialize<'de> for GetMatchedStylesForNodeReturn
impl<'de> Deserialize<'de> for GetMatchedStylesForNodeReturn
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 GetMatchedStylesForNodeReturn
impl RefUnwindSafe for GetMatchedStylesForNodeReturn
impl Send for GetMatchedStylesForNodeReturn
impl Sync for GetMatchedStylesForNodeReturn
impl Unpin for GetMatchedStylesForNodeReturn
impl UnwindSafe for GetMatchedStylesForNodeReturn
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