Struct html::inline_text::KeyboardInput
source · #[non_exhaustive]pub struct KeyboardInput { /* private fields */ }
Expand description
The HTML <kbd>
element
Implementations§
source§impl KeyboardInput
impl KeyboardInput
sourcepub fn builder() -> KeyboardInputBuilder
pub fn builder() -> KeyboardInputBuilder
Create a new builder
source§impl KeyboardInput
impl KeyboardInput
source§impl KeyboardInput
impl KeyboardInput
sourcepub fn access_key(&self) -> Option<&str>
pub fn access_key(&self) -> Option<&str>
Get the value of the accesskey
attribute
sourcepub fn set_access_key(&mut self, value: Option<impl Into<Cow<'static, str>>>)
pub fn set_access_key(&mut self, value: Option<impl Into<Cow<'static, str>>>)
Set the value of the accesskey
attribute
sourcepub fn auto_capitalize(&self) -> Option<&str>
pub fn auto_capitalize(&self) -> Option<&str>
Get the value of the autocapitalize
attribute
sourcepub fn set_auto_capitalize(
&mut self,
value: Option<impl Into<Cow<'static, str>>>
)
pub fn set_auto_capitalize( &mut self, value: Option<impl Into<Cow<'static, str>>> )
Set the value of the autocapitalize
attribute
sourcepub fn set_autofocus(&mut self, value: bool)
pub fn set_autofocus(&mut self, value: bool)
Set the value of the autofocus
attribute
sourcepub fn set_class(&mut self, value: Option<impl Into<Cow<'static, str>>>)
pub fn set_class(&mut self, value: Option<impl Into<Cow<'static, str>>>)
Set the value of the class
attribute
sourcepub fn content_editable(&self) -> Option<&str>
pub fn content_editable(&self) -> Option<&str>
Get the value of the contenteditable
attribute
sourcepub fn set_content_editable(
&mut self,
value: Option<impl Into<Cow<'static, str>>>
)
pub fn set_content_editable( &mut self, value: Option<impl Into<Cow<'static, str>>> )
Set the value of the contenteditable
attribute
sourcepub fn set_direction(&mut self, value: Option<impl Into<Cow<'static, str>>>)
pub fn set_direction(&mut self, value: Option<impl Into<Cow<'static, str>>>)
Set the value of the dir
attribute
sourcepub fn set_draggable(&mut self, value: bool)
pub fn set_draggable(&mut self, value: bool)
Set the value of the draggable
attribute
sourcepub fn enter_key_hint(&self) -> Option<&str>
pub fn enter_key_hint(&self) -> Option<&str>
Get the value of the enterkeyhint
attribute
sourcepub fn set_enter_key_hint(
&mut self,
value: Option<impl Into<Cow<'static, str>>>
)
pub fn set_enter_key_hint( &mut self, value: Option<impl Into<Cow<'static, str>>> )
Set the value of the enterkeyhint
attribute
sourcepub fn export_parts(&self) -> Option<&str>
pub fn export_parts(&self) -> Option<&str>
Get the value of the exportparts
attribute
sourcepub fn set_export_parts(&mut self, value: Option<impl Into<Cow<'static, str>>>)
pub fn set_export_parts(&mut self, value: Option<impl Into<Cow<'static, str>>>)
Set the value of the exportparts
attribute
Get the value of the hidden
attribute
Set the value of the hidden
attribute
sourcepub fn set_id(&mut self, value: Option<impl Into<Cow<'static, str>>>)
pub fn set_id(&mut self, value: Option<impl Into<Cow<'static, str>>>)
Set the value of the id
attribute
sourcepub fn input_mode(&self) -> Option<&str>
pub fn input_mode(&self) -> Option<&str>
Get the value of the inputmode
attribute
sourcepub fn set_input_mode(&mut self, value: Option<impl Into<Cow<'static, str>>>)
pub fn set_input_mode(&mut self, value: Option<impl Into<Cow<'static, str>>>)
Set the value of the inputmode
attribute
sourcepub fn set_is_(&mut self, value: Option<impl Into<Cow<'static, str>>>)
pub fn set_is_(&mut self, value: Option<impl Into<Cow<'static, str>>>)
Set the value of the is
attribute
sourcepub fn set_item_id(&mut self, value: Option<impl Into<Cow<'static, str>>>)
pub fn set_item_id(&mut self, value: Option<impl Into<Cow<'static, str>>>)
Set the value of the itemid
attribute
sourcepub fn set_item_prop(&mut self, value: Option<impl Into<Cow<'static, str>>>)
pub fn set_item_prop(&mut self, value: Option<impl Into<Cow<'static, str>>>)
Set the value of the itemprop
attribute
sourcepub fn set_item_ref(&mut self, value: Option<impl Into<Cow<'static, str>>>)
pub fn set_item_ref(&mut self, value: Option<impl Into<Cow<'static, str>>>)
Set the value of the itemref
attribute
sourcepub fn item_scope(&self) -> Option<&str>
pub fn item_scope(&self) -> Option<&str>
Get the value of the itemscope
attribute
sourcepub fn set_item_scope(&mut self, value: Option<impl Into<Cow<'static, str>>>)
pub fn set_item_scope(&mut self, value: Option<impl Into<Cow<'static, str>>>)
Set the value of the itemscope
attribute
sourcepub fn set_item_type(&mut self, value: Option<impl Into<Cow<'static, str>>>)
pub fn set_item_type(&mut self, value: Option<impl Into<Cow<'static, str>>>)
Set the value of the itemtype
attribute
sourcepub fn set_lang(&mut self, value: Option<impl Into<Cow<'static, str>>>)
pub fn set_lang(&mut self, value: Option<impl Into<Cow<'static, str>>>)
Set the value of the lang
attribute
sourcepub fn set_nonce(&mut self, value: Option<impl Into<Cow<'static, str>>>)
pub fn set_nonce(&mut self, value: Option<impl Into<Cow<'static, str>>>)
Set the value of the nonce
attribute
sourcepub fn set_part(&mut self, value: Option<impl Into<Cow<'static, str>>>)
pub fn set_part(&mut self, value: Option<impl Into<Cow<'static, str>>>)
Set the value of the part
attribute
sourcepub fn set_slot(&mut self, value: Option<impl Into<Cow<'static, str>>>)
pub fn set_slot(&mut self, value: Option<impl Into<Cow<'static, str>>>)
Set the value of the slot
attribute
sourcepub fn spellcheck(&self) -> Option<&str>
pub fn spellcheck(&self) -> Option<&str>
Get the value of the spellcheck
attribute
sourcepub fn set_spellcheck(&mut self, value: Option<impl Into<Cow<'static, str>>>)
pub fn set_spellcheck(&mut self, value: Option<impl Into<Cow<'static, str>>>)
Set the value of the spellcheck
attribute
sourcepub fn set_style(&mut self, value: Option<impl Into<Cow<'static, str>>>)
pub fn set_style(&mut self, value: Option<impl Into<Cow<'static, str>>>)
Set the value of the style
attribute
sourcepub fn set_tab_index(&mut self, value: Option<i64>)
pub fn set_tab_index(&mut self, value: Option<i64>)
Set the value of the tabindex
attribute
sourcepub fn set_title(&mut self, value: Option<impl Into<Cow<'static, str>>>)
pub fn set_title(&mut self, value: Option<impl Into<Cow<'static, str>>>)
Set the value of the title
attribute
sourcepub fn set_translate(&mut self, value: bool)
pub fn set_translate(&mut self, value: bool)
Set the value of the translate
attribute
source§impl KeyboardInput
impl KeyboardInput
sourcepub fn children(&self) -> &[KeyboardInputChild]
pub fn children(&self) -> &[KeyboardInputChild]
Access the element’s children
sourcepub fn children_mut(&mut self) -> &mut Vec<KeyboardInputChild>
pub fn children_mut(&mut self) -> &mut Vec<KeyboardInputChild>
Mutably access the element’s children
Trait Implementations§
source§impl Clone for KeyboardInput
impl Clone for KeyboardInput
source§fn clone(&self) -> KeyboardInput
fn clone(&self) -> KeyboardInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for KeyboardInput
impl Debug for KeyboardInput
source§impl Default for KeyboardInput
impl Default for KeyboardInput
source§fn default() -> KeyboardInput
fn default() -> KeyboardInput
source§impl Display for KeyboardInput
impl Display for KeyboardInput
source§impl From<KeyboardInput> for AbbreviationChild
impl From<KeyboardInput> for AbbreviationChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for AddressChild
impl From<KeyboardInput> for AddressChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for AnchorChild
impl From<KeyboardInput> for AnchorChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for ArticleChild
impl From<KeyboardInput> for ArticleChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for AsideChild
impl From<KeyboardInput> for AsideChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for AudioChild
impl From<KeyboardInput> for AudioChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for BidirectionalIsolateChild
impl From<KeyboardInput> for BidirectionalIsolateChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for BidirectionalTextOverrideChild
impl From<KeyboardInput> for BidirectionalTextOverrideChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for BlockQuoteChild
impl From<KeyboardInput> for BlockQuoteChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for BodyChild
impl From<KeyboardInput> for BodyChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for BoldChild
impl From<KeyboardInput> for BoldChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for ButtonChild
impl From<KeyboardInput> for ButtonChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for CanvasChild
impl From<KeyboardInput> for CanvasChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for CaptionChild
impl From<KeyboardInput> for CaptionChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for CiteChild
impl From<KeyboardInput> for CiteChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for CodeChild
impl From<KeyboardInput> for CodeChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for DataChild
impl From<KeyboardInput> for DataChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for DataListChild
impl From<KeyboardInput> for DataListChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for DefinitionChild
impl From<KeyboardInput> for DefinitionChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for DeletedTextChild
impl From<KeyboardInput> for DeletedTextChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for DescriptionDetailsChild
impl From<KeyboardInput> for DescriptionDetailsChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for DescriptionTermChild
impl From<KeyboardInput> for DescriptionTermChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for DetailsChild
impl From<KeyboardInput> for DetailsChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for DialogChild
impl From<KeyboardInput> for DialogChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for DivisionChild
impl From<KeyboardInput> for DivisionChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for EmphasisChild
impl From<KeyboardInput> for EmphasisChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for FieldsetChild
impl From<KeyboardInput> for FieldsetChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for FigureCaptionChild
impl From<KeyboardInput> for FigureCaptionChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for FigureChild
impl From<KeyboardInput> for FigureChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for FormChild
impl From<KeyboardInput> for FormChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for HeaderChild
impl From<KeyboardInput> for HeaderChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for Heading1Child
impl From<KeyboardInput> for Heading1Child
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for Heading2Child
impl From<KeyboardInput> for Heading2Child
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for Heading3Child
impl From<KeyboardInput> for Heading3Child
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for Heading4Child
impl From<KeyboardInput> for Heading4Child
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for Heading5Child
impl From<KeyboardInput> for Heading5Child
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for Heading6Child
impl From<KeyboardInput> for Heading6Child
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for ImageMapChild
impl From<KeyboardInput> for ImageMapChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for InsertedTextChild
impl From<KeyboardInput> for InsertedTextChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for ItalicChild
impl From<KeyboardInput> for ItalicChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for KeyboardInput
impl From<KeyboardInput> for KeyboardInput
source§fn from(sys: KeyboardInput) -> Self
fn from(sys: KeyboardInput) -> Self
source§impl From<KeyboardInput> for KeyboardInputChild
impl From<KeyboardInput> for KeyboardInputChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for LabelChild
impl From<KeyboardInput> for LabelChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for LegendChild
impl From<KeyboardInput> for LegendChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for ListItemChild
impl From<KeyboardInput> for ListItemChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for MainChild
impl From<KeyboardInput> for MainChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for MarkTextChild
impl From<KeyboardInput> for MarkTextChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for MeterChild
impl From<KeyboardInput> for MeterChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for NoScriptChild
impl From<KeyboardInput> for NoScriptChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for ObjectChild
impl From<KeyboardInput> for ObjectChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for OutputChild
impl From<KeyboardInput> for OutputChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for ParagraphChild
impl From<KeyboardInput> for ParagraphChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for PreformattedTextChild
impl From<KeyboardInput> for PreformattedTextChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for ProgressChild
impl From<KeyboardInput> for ProgressChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for QuotationChild
impl From<KeyboardInput> for QuotationChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for RubyTextChild
impl From<KeyboardInput> for RubyTextChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for SampleOutputChild
impl From<KeyboardInput> for SampleOutputChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for SearchChild
impl From<KeyboardInput> for SearchChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for SectionChild
impl From<KeyboardInput> for SectionChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for SideCommentChild
impl From<KeyboardInput> for SideCommentChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for SlotChild
impl From<KeyboardInput> for SlotChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for SpanChild
impl From<KeyboardInput> for SpanChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for StrikeThroughChild
impl From<KeyboardInput> for StrikeThroughChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for StrongChild
impl From<KeyboardInput> for StrongChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for SubScriptChild
impl From<KeyboardInput> for SubScriptChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for SummaryChild
impl From<KeyboardInput> for SummaryChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for SuperScriptChild
impl From<KeyboardInput> for SuperScriptChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for TableCellChild
impl From<KeyboardInput> for TableCellChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for TableHeaderChild
impl From<KeyboardInput> for TableHeaderChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for TimeChild
impl From<KeyboardInput> for TimeChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for UnderlineChild
impl From<KeyboardInput> for UnderlineChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for VariableChild
impl From<KeyboardInput> for VariableChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl From<KeyboardInput> for VideoChild
impl From<KeyboardInput> for VideoChild
source§fn from(value: KeyboardInput) -> Self
fn from(value: KeyboardInput) -> Self
source§impl Into<KeyboardInput> for KeyboardInput
impl Into<KeyboardInput> for KeyboardInput
source§fn into(self) -> KeyboardInput
fn into(self) -> KeyboardInput
source§impl PartialEq<KeyboardInput> for KeyboardInput
impl PartialEq<KeyboardInput> for KeyboardInput
source§fn eq(&self, other: &KeyboardInput) -> bool
fn eq(&self, other: &KeyboardInput) -> bool
self
and other
values to be equal, and is used
by ==
.