Struct cdp::css::GetBackgroundColorsResponse
[−]
[src]
pub struct GetBackgroundColorsResponse<'a> { pub background_colors: Option<Vec<Cow<'a, str>>>, pub computed_font_size: Option<Cow<'a, str>>, pub computed_font_weight: Option<Cow<'a, str>>, pub computed_body_font_size: Option<Cow<'a, str>>, }
[Experimental]
Command CSS.getBackgroundColors
Domain Module: cdp::css
Command Struct: cdp::css::GetBackgroundColorsCommand
Response Struct: cdp::css::GetBackgroundColorsResponse
Fields
background_colors: Option<Vec<Cow<'a, str>>>
The range of background colors behind this element, if it contains any visible text. If no visible text is present, this will be undefined. In the case of a flat background color, this will consist of simply that color. In the case of a gradient, this will consist of each of the color stops. For anything more complicated, this will be an empty array. Images will be ignored (as if the image had failed to load).
computed_font_size: Option<Cow<'a, str>>
The computed font size for this node, as a CSS computed value string (e.g. '12px').
computed_font_weight: Option<Cow<'a, str>>
The computed font weight for this node, as a CSS computed value string (e.g. 'normal' or '100').
computed_body_font_size: Option<Cow<'a, str>>
The computed font size for the document body, as a computed CSS value string (e.g. '16px').
Trait Implementations
impl<'a> Clone for GetBackgroundColorsResponse<'a>
[src]
fn clone(&self) -> GetBackgroundColorsResponse<'a>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a> Debug for GetBackgroundColorsResponse<'a>
[src]
impl<'a> PartialEq for GetBackgroundColorsResponse<'a>
[src]
fn eq(&self, __arg_0: &GetBackgroundColorsResponse<'a>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &GetBackgroundColorsResponse<'a>) -> bool
[src]
This method tests for !=
.
impl<'a> CdpCommand for GetBackgroundColorsResponse<'a>
[src]
const COMMAND_NAME: &'static str
COMMAND_NAME: &'static str = "CSS.getBackgroundColors"