pub enum Role {
Show 184 variants
Unknown,
InlineTextBox,
Cell,
StaticText,
Image,
Link,
Row,
ListItem,
ListMarker,
TreeItem,
ListBoxOption,
MenuItem,
MenuListOption,
Paragraph,
GenericContainer,
Presentation,
CheckBox,
RadioButton,
TextField,
Button,
LabelText,
Pane,
RowHeader,
ColumnHeader,
Column,
RowGroup,
List,
Table,
TableHeaderContainer,
LayoutTableCell,
LayoutTableRow,
LayoutTable,
Switch,
ToggleButton,
Menu,
Abbr,
Alert,
AlertDialog,
Application,
Article,
Audio,
Banner,
Blockquote,
Canvas,
Caption,
Caret,
Client,
Code,
ColorWell,
ComboBoxGrouping,
ComboBoxMenuButton,
Complementary,
Comment,
ContentDeletion,
ContentInsertion,
ContentInfo,
Date,
DateTime,
Definition,
DescriptionList,
DescriptionListDetail,
DescriptionListTerm,
Details,
Dialog,
Directory,
DisclosureTriangle,
Document,
EmbeddedObject,
Emphasis,
Feed,
FigureCaption,
Figure,
Footer,
FooterAsNonLandmark,
Form,
Grid,
Group,
Header,
HeaderAsNonLandmark,
Heading,
Iframe,
IframePresentational,
ImeCandidate,
InputTime,
Keyboard,
Legend,
LineBreak,
ListBox,
Log,
Main,
Mark,
Marquee,
Math,
MenuBar,
MenuItemCheckBox,
MenuItemRadio,
MenuListPopup,
Meter,
Navigation,
Note,
PluginObject,
PopupButton,
Portal,
Pre,
ProgressIndicator,
RadioGroup,
Region,
RootWebArea,
Ruby,
RubyAnnotation,
ScrollBar,
ScrollView,
Search,
SearchBox,
Section,
Slider,
SpinButton,
Splitter,
Status,
Strong,
Suggestion,
SvgRoot,
Tab,
TabList,
TabPanel,
Term,
TextFieldWithComboBox,
Time,
Timer,
TitleBar,
Toolbar,
Tooltip,
Tree,
TreeGrid,
Video,
WebView,
Window,
PdfActionableHighlight,
PdfRoot,
GraphicsDocument,
GraphicsObject,
GraphicsSymbol,
DocAbstract,
DocAcknowledgements,
DocAfterword,
DocAppendix,
DocBackLink,
DocBiblioEntry,
DocBibliography,
DocBiblioRef,
DocChapter,
DocColophon,
DocConclusion,
DocCover,
DocCredit,
DocCredits,
DocDedication,
DocEndnote,
DocEndnotes,
DocEpigraph,
DocEpilogue,
DocErrata,
DocExample,
DocFootnote,
DocForeword,
DocGlossary,
DocGlossRef,
DocIndex,
DocIntroduction,
DocNoteRef,
DocNotice,
DocPageBreak,
DocPageFooter,
DocPageHeader,
DocPageList,
DocPart,
DocPreface,
DocPrologue,
DocPullquote,
DocQna,
DocSubtitle,
DocTip,
DocToc,
ListGrid,
}
Expand description
The type of an accessibility node.
The majority of these roles come from the ARIA specification. Reference the latest draft for proper usage.
Like the AccessKit schema as a whole, this list is largely taken
from Chromium. However, unlike Chromium’s alphabetized list, this list
is ordered roughly by expected usage frequency (with the notable exception
of Role::Unknown
). This is more efficient in serialization formats
where integers use a variable-length encoding.
Variants
Unknown
InlineTextBox
Cell
StaticText
Image
Link
Row
ListItem
ListMarker
Contains the bullet, number, or other marker for a list item.
TreeItem
ListBoxOption
MenuItem
MenuListOption
Paragraph
GenericContainer
Presentation
Used for ARIA role=“none”/“presentation” – ignored in platform tree.
CheckBox
RadioButton
TextField
Button
LabelText
Pane
RowHeader
ColumnHeader
Column
RowGroup
List
Table
TableHeaderContainer
LayoutTableCell
LayoutTableRow
LayoutTable
Switch
ToggleButton
Menu
Abbr
Alert
AlertDialog
Application
Article
Audio
Banner
Blockquote
Canvas
Caption
Caret
Client
Code
ColorWell
ComboBoxGrouping
ComboBoxMenuButton
Complementary
Comment
ContentDeletion
ContentInsertion
ContentInfo
Date
DateTime
Definition
DescriptionList
DescriptionListDetail
DescriptionListTerm
Details
Dialog
Directory
DisclosureTriangle
Document
EmbeddedObject
Emphasis
Feed
FigureCaption
Figure
Footer
FooterAsNonLandmark
Form
Grid
Group
Header
HeaderAsNonLandmark
Heading
Iframe
IframePresentational
ImeCandidate
InputTime
Keyboard
Legend
LineBreak
ListBox
Log
Main
Mark
Marquee
Math
MenuBar
MenuItemCheckBox
MenuItemRadio
MenuListPopup
Meter
Navigation
Note
PluginObject
PopupButton
Portal
Pre
ProgressIndicator
RadioGroup
Region
RootWebArea
Ruby
RubyAnnotation
ScrollBar
ScrollView
Search
SearchBox
Section
Slider
SpinButton
Splitter
Status
Strong
Suggestion
SvgRoot
Tab
TabList
TabPanel
Term
TextFieldWithComboBox
Time
Timer
TitleBar
Toolbar
Tooltip
Tree
TreeGrid
Video
WebView
Window
PdfActionableHighlight
PdfRoot
GraphicsDocument
GraphicsObject
GraphicsSymbol
DocAbstract
DocAcknowledgements
DocAfterword
DocAppendix
DocBackLink
DocBiblioEntry
DocBibliography
DocBiblioRef
DocChapter
DocColophon
DocConclusion
DocCover
DocCredit
DocCredits
DocDedication
DocEndnote
DocEndnotes
DocEpigraph
DocEpilogue
DocErrata
DocExample
DocFootnote
DocForeword
DocGlossary
DocGlossRef
DocIndex
DocIntroduction
DocNoteRef
DocNotice
DocPageBreak
DocPageFooter
DocPageHeader
DocPageList
DocPart
DocPreface
DocPrologue
DocPullquote
DocQna
DocSubtitle
DocTip
DocToc
ListGrid
Behaves similar to an ARIA grid but is primarily used by Chromium’s
TableView
and its subclasses, so they can be exposed correctly
on certain platforms.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Role
impl<'de> Deserialize<'de> for Role
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl JsonSchema for Role
impl JsonSchema for Role
sourcefn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
sourcefn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
sourcefn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreimpl Copy for Role
impl Eq for Role
impl StructuralEq for Role
impl StructuralPartialEq for Role
Auto Trait Implementations
impl RefUnwindSafe for Role
impl Send for Role
impl Sync for Role
impl Unpin for Role
impl UnwindSafe for Role
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more