Enum html_tags::ElementOwned
source · pub enum ElementOwned {
Show 132 variants
Html(HtmlOwned),
Base(BaseOwned),
Head(HeadOwned),
Link(LinkOwned),
Meta(MetaOwned),
Style(StyleOwned),
Title(TitleOwned),
Body(BodyOwned),
Address(AddressOwned),
Article(ArticleOwned),
Aside(AsideOwned),
Footer(FooterOwned),
Header(HeaderOwned),
Hgroup(HgroupOwned),
Main(MainOwned),
Nav(NavOwned),
Section(SectionOwned),
Blockquote(BlockquoteOwned),
Dd(DdOwned),
Div(DivOwned),
Dl(DlOwned),
Dt(DtOwned),
Figcaption(FigcaptionOwned),
Figure(FigureOwned),
Hr(HrOwned),
Li(LiOwned),
Menu(MenuOwned),
Ol(OlOwned),
P(POwned),
Pre(PreOwned),
Ul(UlOwned),
A(AOwned),
Abbr(AbbrOwned),
B(BOwned),
Bdi(BdiOwned),
Bdo(BdoOwned),
Br(BrOwned),
Cite(CiteOwned),
Code(CodeOwned),
Data(DataOwned),
Dfn(DfnOwned),
Em(EmOwned),
I(IOwned),
Kbd(KbdOwned),
Mark(MarkOwned),
Q(QOwned),
Rp(RpOwned),
Rt(RtOwned),
Ruby(RubyOwned),
S(SOwned),
Samp(SampOwned),
Small(SmallOwned),
Span(SpanOwned),
Strong(StrongOwned),
Sub(SubOwned),
Sup(SupOwned),
Time(TimeOwned),
U(UOwned),
Var(VarOwned),
Wbr(WbrOwned),
Area(AreaOwned),
Audio(AudioOwned),
Img(ImgOwned),
Map(MapOwned),
Track(TrackOwned),
Video(VideoOwned),
Embed(EmbedOwned),
Iframe(IframeOwned),
Object(ObjectOwned),
Picture(PictureOwned),
Portal(PortalOwned),
Source(SourceOwned),
Canvas(CanvasOwned),
Noscript(NoscriptOwned),
Script(ScriptOwned),
Del(DelOwned),
Ins(InsOwned),
Caption(CaptionOwned),
Col(ColOwned),
Colgroup(ColgroupOwned),
Table(TableOwned),
Tbody(TbodyOwned),
Td(TdOwned),
Tfoot(TfootOwned),
Th(ThOwned),
Thead(TheadOwned),
Tr(TrOwned),
Button(ButtonOwned),
Datalist(DatalistOwned),
Fieldset(FieldsetOwned),
Form(FormOwned),
Input(InputOwned),
Label(LabelOwned),
Legend(LegendOwned),
Meter(MeterOwned),
Optgroup(OptgroupOwned),
Option(OptionOwned),
Output(OutputOwned),
Progress(ProgressOwned),
Select(SelectOwned),
Textarea(TextareaOwned),
Details(DetailsOwned),
Dialog(DialogOwned),
Summary(SummaryOwned),
Slot(SlotOwned),
Template(TemplateOwned),
Acronym(AcronymOwned),
Applet(AppletOwned),
Bgsound(BgsoundOwned),
Big(BigOwned),
Blink(BlinkOwned),
Center(CenterOwned),
Dir(DirOwned),
Font(FontOwned),
Frame(FrameOwned),
Frameset(FramesetOwned),
Image(ImageOwned),
Keygen(KeygenOwned),
Marquee(MarqueeOwned),
Menuitem(MenuitemOwned),
Nobr(NobrOwned),
Noembed(NoembedOwned),
Noframes(NoframesOwned),
Param(ParamOwned),
Plaintext(PlaintextOwned),
Rb(RbOwned),
Rtc(RtcOwned),
Spacer(SpacerOwned),
Strike(StrikeOwned),
Tt(TtOwned),
Xmp(XmpOwned),
Unknown(UnknownOwned),
}
Variants§
Html(HtmlOwned)
Base(BaseOwned)
Head(HeadOwned)
Link(LinkOwned)
Meta(MetaOwned)
Style(StyleOwned)
Title(TitleOwned)
Body(BodyOwned)
Address(AddressOwned)
Article(ArticleOwned)
Aside(AsideOwned)
Header(HeaderOwned)
Hgroup(HgroupOwned)
Main(MainOwned)
Section(SectionOwned)
Blockquote(BlockquoteOwned)
Dd(DdOwned)
Div(DivOwned)
Dl(DlOwned)
Dt(DtOwned)
Figcaption(FigcaptionOwned)
Figure(FigureOwned)
Hr(HrOwned)
Li(LiOwned)
Menu(MenuOwned)
Ol(OlOwned)
P(POwned)
Pre(PreOwned)
Ul(UlOwned)
A(AOwned)
Abbr(AbbrOwned)
B(BOwned)
Bdi(BdiOwned)
Bdo(BdoOwned)
Br(BrOwned)
Cite(CiteOwned)
Code(CodeOwned)
Data(DataOwned)
Dfn(DfnOwned)
Em(EmOwned)
I(IOwned)
Kbd(KbdOwned)
Mark(MarkOwned)
Q(QOwned)
Rp(RpOwned)
Rt(RtOwned)
Ruby(RubyOwned)
S(SOwned)
Samp(SampOwned)
Small(SmallOwned)
Span(SpanOwned)
Strong(StrongOwned)
Sub(SubOwned)
Sup(SupOwned)
Time(TimeOwned)
U(UOwned)
Var(VarOwned)
Wbr(WbrOwned)
Area(AreaOwned)
Audio(AudioOwned)
Img(ImgOwned)
Map(MapOwned)
Track(TrackOwned)
Video(VideoOwned)
Embed(EmbedOwned)
Iframe(IframeOwned)
Object(ObjectOwned)
Picture(PictureOwned)
Portal(PortalOwned)
Source(SourceOwned)
Canvas(CanvasOwned)
Noscript(NoscriptOwned)
Script(ScriptOwned)
Del(DelOwned)
Ins(InsOwned)
Caption(CaptionOwned)
Col(ColOwned)
Colgroup(ColgroupOwned)
Table(TableOwned)
Tbody(TbodyOwned)
Td(TdOwned)
Tfoot(TfootOwned)
Th(ThOwned)
Thead(TheadOwned)
Tr(TrOwned)
Button(ButtonOwned)
Datalist(DatalistOwned)
Fieldset(FieldsetOwned)
Form(FormOwned)
Input(InputOwned)
Label(LabelOwned)
Legend(LegendOwned)
Meter(MeterOwned)
Optgroup(OptgroupOwned)
Option(OptionOwned)
Output(OutputOwned)
Progress(ProgressOwned)
Select(SelectOwned)
Textarea(TextareaOwned)
Details(DetailsOwned)
Dialog(DialogOwned)
Summary(SummaryOwned)
Slot(SlotOwned)
Template(TemplateOwned)
Acronym(AcronymOwned)
Applet(AppletOwned)
Bgsound(BgsoundOwned)
Big(BigOwned)
Blink(BlinkOwned)
Center(CenterOwned)
Dir(DirOwned)
Font(FontOwned)
Frame(FrameOwned)
Frameset(FramesetOwned)
Image(ImageOwned)
Keygen(KeygenOwned)
Marquee(MarqueeOwned)
Menuitem(MenuitemOwned)
Nobr(NobrOwned)
Noembed(NoembedOwned)
Noframes(NoframesOwned)
Param(ParamOwned)
Plaintext(PlaintextOwned)
Rb(RbOwned)
Rtc(RtcOwned)
Spacer(SpacerOwned)
Strike(StrikeOwned)
Tt(TtOwned)
Xmp(XmpOwned)
Unknown(UnknownOwned)
Implementations§
source§impl ElementOwned
impl ElementOwned
source§impl ElementOwned
impl ElementOwned
sourcepub fn accesskey(&self) -> Option<&String>
pub fn accesskey(&self) -> Option<&String>
Provides a hint for generating a keyboard shortcut for the current element. This attribute consists of a space-separated list of characters. The browser should use the first one that exists on the computer keyboard layout.
sourcepub fn autocapitalize(&self) -> Option<&String>
pub fn autocapitalize(&self) -> Option<&String>
Controls whether and how text input is automatically capitalized as it is entered/edited by the user. It can have the following values:
off
ornone
, no autocapitalization is applied (all letters default to lowercase)on
orsentences
, the first letter of each sentence defaults to a capital letter; all other letters default to lowercasewords
, the first letter of each word defaults to a capital letter; all other letters default to lowercasecharacters
, all letters should default to uppercase
sourcepub fn autofocus(&self) -> Option<&bool>
pub fn autofocus(&self) -> Option<&bool>
Indicates that an element is to be focused on page load, or as soon as the <dialog>
it is part of is displayed. This attribute is a boolean, initially false.
sourcepub fn class(&self) -> Option<&String>
pub fn class(&self) -> Option<&String>
A space-separated list of the classes of the element. Classes allow CSS and JavaScript to select and access specific elements via the class selectors or functions like the method Document.getElementsByClassName()
.
sourcepub fn contenteditable(&self) -> Option<&String>
pub fn contenteditable(&self) -> Option<&String>
An enumerated attribute indicating if the element should be editable by the user. If so, the browser modifies its widget to allow editing. The attribute must take one of the following values:
true
or the empty string, which indicates that the element must be editable;false
, which indicates that the element must not be editable.
sourcepub fn data(&self) -> Option<&BTreeMap<String, String>>
pub fn data(&self) -> Option<&BTreeMap<String, String>>
Forms a class of attributes, called custom data attributes, that allow proprietary information to be exchanged between the HTML and its DOM representation that may be used by scripts. All such custom data are available via the HTMLElement
interface of the element the attribute is set on. The HTMLElement.dataset
property gives access to them.
sourcepub fn dir(&self) -> Option<&String>
pub fn dir(&self) -> Option<&String>
An enumerated attribute indicating the directionality of the element's text. It can have the following values:
ltr
, which means left to right and is to be used for languages that are written from the left to the right (like English);rtl
, which means right to left and is to be used for languages that are written from the right to the left (like Arabic);auto
, which lets the user agent decide. It uses a basic algorithm as it parses the characters inside the element until it finds a character with a strong directionality, then it applies that directionality to the whole element.
sourcepub fn draggable(&self) -> Option<&String>
pub fn draggable(&self) -> Option<&String>
An enumerated attribute indicating whether the element can be dragged, using the Drag and Drop API. It can have the following values:
true
, which indicates that the element may be draggedfalse
, which indicates that the element may not be dragged.
sourcepub fn enterkeyhint(&self) -> Option<&String>
pub fn enterkeyhint(&self) -> Option<&String>
Hints what action label (or icon) to present for the enter key on virtual keyboards.
sourcepub fn exportparts(&self) -> Option<&String>
pub fn exportparts(&self) -> Option<&String>
Used to transitively export shadow parts from a nested shadow tree into a containing light tree.
sourcepub fn extra(&self) -> Option<&BTreeMap<String, String>>
pub fn extra(&self) -> Option<&BTreeMap<String, String>>
Extra attributes of the element. This is a map of attribute names to their values, and the attribute names are in lowercase.
An enumerated attribute indicating that the element is not yet, or is no longer, relevant. For example, it can be used to hide elements of the page that can't be used until the login process has been completed. The browser won't render such elements. This attribute must not be used to hide content that could legitimately be shown.
sourcepub fn id(&self) -> Option<&String>
pub fn id(&self) -> Option<&String>
Defines a unique identifier (ID) which must be unique in the whole document. Its purpose is to identify the element when linking (using a fragment identifier), scripting, or styling (with CSS).
sourcepub fn inert(&self) -> Option<&String>
pub fn inert(&self) -> Option<&String>
A boolean value that makes the browser disregard user input events for the element. Useful when click events are present.
sourcepub fn inputmode(&self) -> Option<&String>
pub fn inputmode(&self) -> Option<&String>
Provides a hint to browsers about the type of virtual keyboard configuration to use when editing this element or its contents. Used primarily on <input>
elements, but is usable on any element while in contenteditable
mode.
sourcepub fn is(&self) -> Option<&String>
pub fn is(&self) -> Option<&String>
Allows you to specify that a standard HTML element should behave like a registered custom built-in element (see Using custom elements for more details).
sourcepub fn set_accesskey(&mut self, val: String)
pub fn set_accesskey(&mut self, val: String)
Provides a hint for generating a keyboard shortcut for the current element. This attribute consists of a space-separated list of characters. The browser should use the first one that exists on the computer keyboard layout.
sourcepub fn set_autocapitalize(&mut self, val: String)
pub fn set_autocapitalize(&mut self, val: String)
Controls whether and how text input is automatically capitalized as it is entered/edited by the user. It can have the following values:
off
ornone
, no autocapitalization is applied (all letters default to lowercase)on
orsentences
, the first letter of each sentence defaults to a capital letter; all other letters default to lowercasewords
, the first letter of each word defaults to a capital letter; all other letters default to lowercasecharacters
, all letters should default to uppercase
sourcepub fn set_autofocus(&mut self, val: bool)
pub fn set_autofocus(&mut self, val: bool)
Indicates that an element is to be focused on page load, or as soon as the <dialog>
it is part of is displayed. This attribute is a boolean, initially false.
sourcepub fn set_class(&mut self, val: String)
pub fn set_class(&mut self, val: String)
A space-separated list of the classes of the element. Classes allow CSS and JavaScript to select and access specific elements via the class selectors or functions like the method Document.getElementsByClassName()
.
sourcepub fn set_contenteditable(&mut self, val: String)
pub fn set_contenteditable(&mut self, val: String)
An enumerated attribute indicating if the element should be editable by the user. If so, the browser modifies its widget to allow editing. The attribute must take one of the following values:
true
or the empty string, which indicates that the element must be editable;false
, which indicates that the element must not be editable.
sourcepub fn set_data(&mut self, val: BTreeMap<String, String>)
pub fn set_data(&mut self, val: BTreeMap<String, String>)
Forms a class of attributes, called custom data attributes, that allow proprietary information to be exchanged between the HTML and its DOM representation that may be used by scripts. All such custom data are available via the HTMLElement
interface of the element the attribute is set on. The HTMLElement.dataset
property gives access to them.
sourcepub fn set_dir(&mut self, val: String)
pub fn set_dir(&mut self, val: String)
An enumerated attribute indicating the directionality of the element's text. It can have the following values:
ltr
, which means left to right and is to be used for languages that are written from the left to the right (like English);rtl
, which means right to left and is to be used for languages that are written from the right to the left (like Arabic);auto
, which lets the user agent decide. It uses a basic algorithm as it parses the characters inside the element until it finds a character with a strong directionality, then it applies that directionality to the whole element.
sourcepub fn set_draggable(&mut self, val: String)
pub fn set_draggable(&mut self, val: String)
An enumerated attribute indicating whether the element can be dragged, using the Drag and Drop API. It can have the following values:
true
, which indicates that the element may be draggedfalse
, which indicates that the element may not be dragged.
sourcepub fn set_enterkeyhint(&mut self, val: String)
pub fn set_enterkeyhint(&mut self, val: String)
Hints what action label (or icon) to present for the enter key on virtual keyboards.
sourcepub fn set_exportparts(&mut self, val: String)
pub fn set_exportparts(&mut self, val: String)
Used to transitively export shadow parts from a nested shadow tree into a containing light tree.
sourcepub fn set_extra(&mut self, val: BTreeMap<String, String>)
pub fn set_extra(&mut self, val: BTreeMap<String, String>)
Extra attributes of the element. This is a map of attribute names to their values, and the attribute names are in lowercase.
An enumerated attribute indicating that the element is not yet, or is no longer, relevant. For example, it can be used to hide elements of the page that can't be used until the login process has been completed. The browser won't render such elements. This attribute must not be used to hide content that could legitimately be shown.
sourcepub fn set_id(&mut self, val: String)
pub fn set_id(&mut self, val: String)
Defines a unique identifier (ID) which must be unique in the whole document. Its purpose is to identify the element when linking (using a fragment identifier), scripting, or styling (with CSS).
sourcepub fn set_inert(&mut self, val: String)
pub fn set_inert(&mut self, val: String)
A boolean value that makes the browser disregard user input events for the element. Useful when click events are present.
sourcepub fn set_inputmode(&mut self, val: String)
pub fn set_inputmode(&mut self, val: String)
Provides a hint to browsers about the type of virtual keyboard configuration to use when editing this element or its contents. Used primarily on <input>
elements, but is usable on any element while in contenteditable
mode.
sourcepub fn set_is(&mut self, val: String)
pub fn set_is(&mut self, val: String)
Allows you to specify that a standard HTML element should behave like a registered custom built-in element (see Using custom elements for more details).
Trait Implementations§
source§impl Clone for ElementOwned
impl Clone for ElementOwned
source§fn clone(&self) -> ElementOwned
fn clone(&self) -> ElementOwned
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ElementOwned
impl Debug for ElementOwned
source§impl Default for ElementOwned
impl Default for ElementOwned
source§impl Ord for ElementOwned
impl Ord for ElementOwned
source§fn cmp(&self, other: &ElementOwned) -> Ordering
fn cmp(&self, other: &ElementOwned) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
source§impl PartialEq<ElementOwned> for ElementOwned
impl PartialEq<ElementOwned> for ElementOwned
source§fn eq(&self, other: &ElementOwned) -> bool
fn eq(&self, other: &ElementOwned) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ElementOwned> for ElementOwned
impl PartialOrd<ElementOwned> for ElementOwned
source§fn partial_cmp(&self, other: &ElementOwned) -> Option<Ordering>
fn partial_cmp(&self, other: &ElementOwned) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more