Struct chromiumoxide::cdp::browser_protocol::dom_snapshot::ComputedStyle
source · pub struct ComputedStyle {
pub properties: Vec<NameValue>,
}
Expand description
A subset of the full ComputedStyle as defined by the request whitelist. ComputedStyle
Fields§
§properties: Vec<NameValue>
Name/value pairs of computed style properties.
Implementations§
source§impl ComputedStyle
impl ComputedStyle
pub fn new(properties: Vec<NameValue>) -> ComputedStyle
source§impl ComputedStyle
impl ComputedStyle
pub fn builder() -> ComputedStyleBuilder
source§impl ComputedStyle
impl ComputedStyle
pub const IDENTIFIER: &'static str = "DOMSnapshot.ComputedStyle"
Trait Implementations§
source§impl Clone for ComputedStyle
impl Clone for ComputedStyle
source§fn clone(&self) -> ComputedStyle
fn clone(&self) -> ComputedStyle
Returns a copy 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 ComputedStyle
impl Debug for ComputedStyle
source§impl<'de> Deserialize<'de> for ComputedStyle
impl<'de> Deserialize<'de> for ComputedStyle
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<ComputedStyle, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<ComputedStyle, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for ComputedStyle
impl PartialEq for ComputedStyle
source§fn eq(&self, other: &ComputedStyle) -> bool
fn eq(&self, other: &ComputedStyle) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ComputedStyle
impl Serialize for ComputedStyle
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ComputedStyle
Auto Trait Implementations§
impl Freeze for ComputedStyle
impl RefUnwindSafe for ComputedStyle
impl Send for ComputedStyle
impl Sync for ComputedStyle
impl Unpin for ComputedStyle
impl UnwindSafe for ComputedStyle
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