Struct chrome_remote_interface_model::css::GetBackgroundColorsReturn[][src]

pub struct GetBackgroundColorsReturn { /* fields omitted */ }

Implementations

impl GetBackgroundColorsReturn[src]

pub fn new(
    background_colors: Option<Vec<String>>,
    computed_font_size: Option<String>,
    computed_font_weight: Option<String>
) -> Self
[src]

pub fn background_colors(&self) -> Option<&Vec<String>>[src]

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).

pub fn computed_font_size(&self) -> Option<&String>[src]

The computed font size for this node, as a CSS computed value string (e.g. '12px').

pub fn computed_font_weight(&self) -> Option<&String>[src]

The computed font weight for this node, as a CSS computed value string (e.g. 'normal' or '100').

Trait Implementations

impl Clone for GetBackgroundColorsReturn[src]

impl Debug for GetBackgroundColorsReturn[src]

impl<'de> Deserialize<'de> for GetBackgroundColorsReturn[src]

impl Serialize for GetBackgroundColorsReturn[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.