pub struct GetInlineStylesForNodeReturn { /* private fields */ }Available on crate features
experimental and CSS and DOM and Page only.Expand description
Returns the styles defined inline (explicitly in the “style” attribute and implicitly, using DOM
attributes) for a DOM node identified by nodeId.
Implementations§
Source§impl GetInlineStylesForNodeReturn
impl GetInlineStylesForNodeReturn
pub fn new( inline_style: Option<CssStyle>, attributes_style: Option<CssStyle>, ) -> Self
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%”).
Trait Implementations§
Source§impl Clone for GetInlineStylesForNodeReturn
impl Clone for GetInlineStylesForNodeReturn
Source§fn clone(&self) -> GetInlineStylesForNodeReturn
fn clone(&self) -> GetInlineStylesForNodeReturn
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 GetInlineStylesForNodeReturn
impl Debug for GetInlineStylesForNodeReturn
Source§impl<'de> Deserialize<'de> for GetInlineStylesForNodeReturn
impl<'de> Deserialize<'de> for GetInlineStylesForNodeReturn
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 GetInlineStylesForNodeReturn
impl RefUnwindSafe for GetInlineStylesForNodeReturn
impl Send for GetInlineStylesForNodeReturn
impl Sync for GetInlineStylesForNodeReturn
impl Unpin for GetInlineStylesForNodeReturn
impl UnwindSafe for GetInlineStylesForNodeReturn
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