Struct html::embedded::builders::EmbedBuilder
source · pub struct EmbedBuilder { /* private fields */ }
Expand description
A builder struct for Embed
Implementations§
source§impl EmbedBuilder
impl EmbedBuilder
sourcepub fn data(
&mut self,
data_key: impl Into<Cow<'static, str>>,
value: impl Into<Cow<'static, str>>
) -> &mut EmbedBuilder
pub fn data( &mut self, data_key: impl Into<Cow<'static, str>>, value: impl Into<Cow<'static, str>> ) -> &mut EmbedBuilder
Insert a data-*
property
sourcepub fn src(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn src(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the src
attribute
sourcepub fn type_(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn type_(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the type
attribute
sourcepub fn width(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn width(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the width
attribute
sourcepub fn height(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn height(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the height
attribute
sourcepub fn access_key(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn access_key(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the accesskey
attribute
sourcepub fn auto_capitalize(
&mut self,
value: impl Into<Cow<'static, str>>
) -> &mut Self
pub fn auto_capitalize( &mut self, value: impl Into<Cow<'static, str>> ) -> &mut Self
Set the value of the autocapitalize
attribute
sourcepub fn class(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn class(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the class
attribute
sourcepub fn content_editable(
&mut self,
value: impl Into<Cow<'static, str>>
) -> &mut Self
pub fn content_editable( &mut self, value: impl Into<Cow<'static, str>> ) -> &mut Self
Set the value of the contenteditable
attribute
sourcepub fn direction(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn direction(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the dir
attribute
sourcepub fn enter_key_hint(
&mut self,
value: impl Into<Cow<'static, str>>
) -> &mut Self
pub fn enter_key_hint( &mut self, value: impl Into<Cow<'static, str>> ) -> &mut Self
Set the value of the enterkeyhint
attribute
sourcepub fn export_parts(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn export_parts(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the exportparts
attribute
Set the value of the hidden
attribute
sourcepub fn id(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn id(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the id
attribute
sourcepub fn input_mode(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn input_mode(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the inputmode
attribute
sourcepub fn is_(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn is_(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the is
attribute
sourcepub fn item_id(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn item_id(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the itemid
attribute
sourcepub fn item_prop(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn item_prop(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the itemprop
attribute
sourcepub fn item_ref(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn item_ref(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the itemref
attribute
sourcepub fn item_scope(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn item_scope(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the itemscope
attribute
sourcepub fn item_type(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn item_type(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the itemtype
attribute
sourcepub fn lang(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn lang(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the lang
attribute
sourcepub fn nonce(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn nonce(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the nonce
attribute
sourcepub fn part(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn part(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the part
attribute
sourcepub fn slot(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn slot(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the slot
attribute
sourcepub fn spellcheck(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn spellcheck(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the spellcheck
attribute
sourcepub fn style(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn style(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the style
attribute