HtmlSourceElement

Struct HtmlSourceElement 

Source
pub struct HtmlSourceElement { /* private fields */ }
Expand description

The HtmlSourceElement class.

MDN Documentation

This API requires the following crate features to be activated: HtmlSourceElement

Implementations§

Source§

impl HtmlSourceElement

Source

pub fn src(&self) -> String

Getter for the src field of this object.

MDN Documentation

This API requires the following crate features to be activated: HtmlSourceElement

Source§

impl HtmlSourceElement

Source

pub fn set_src(&self, value: &str)

Setter for the src field of this object.

MDN Documentation

This API requires the following crate features to be activated: HtmlSourceElement

Source§

impl HtmlSourceElement

Source

pub fn type_(&self) -> String

Getter for the type field of this object.

MDN Documentation

This API requires the following crate features to be activated: HtmlSourceElement

Source§

impl HtmlSourceElement

Source

pub fn set_type(&self, value: &str)

Setter for the type field of this object.

MDN Documentation

This API requires the following crate features to be activated: HtmlSourceElement

Source§

impl HtmlSourceElement

Source

pub fn srcset(&self) -> String

Getter for the srcset field of this object.

MDN Documentation

This API requires the following crate features to be activated: HtmlSourceElement

Source§

impl HtmlSourceElement

Source

pub fn set_srcset(&self, value: &str)

Setter for the srcset field of this object.

MDN Documentation

This API requires the following crate features to be activated: HtmlSourceElement

Source§

impl HtmlSourceElement

Source

pub fn sizes(&self) -> String

Getter for the sizes field of this object.

MDN Documentation

This API requires the following crate features to be activated: HtmlSourceElement

Source§

impl HtmlSourceElement

Source

pub fn set_sizes(&self, value: &str)

Setter for the sizes field of this object.