Struct html::scripting::builders::ScriptBuilder
source · pub struct ScriptBuilder { /* private fields */ }Expand description
A builder struct for Script
Implementations§
source§impl ScriptBuilder
impl ScriptBuilder
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 nomodule(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn nomodule(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the nomodule attribute
sourcepub fn async_(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn async_(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the async attribute
sourcepub fn defer(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn defer(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the defer attribute
sourcepub fn crossorigin(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn crossorigin(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the crossorigin attribute
sourcepub fn integrity(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn integrity(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the integrity attribute
sourcepub fn referrerpolicy(
&mut self,
value: impl Into<Cow<'static, str>>
) -> &mut Self
pub fn referrerpolicy( &mut self, value: impl Into<Cow<'static, str>> ) -> &mut Self
Set the value of the referrerpolicy attribute
sourcepub fn blocking(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
pub fn blocking(&mut self, value: impl Into<Cow<'static, str>>) -> &mut Self
Set the value of the blocking attribute
sourcepub fn fetchpriority(
&mut self,
value: impl Into<Cow<'static, str>>
) -> &mut Self
pub fn fetchpriority( &mut self, value: impl Into<Cow<'static, str>> ) -> &mut Self
Set the value of the fetchpriority 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