#[non_exhaustive]pub struct AccessibilityNode {Show 15 fields
pub role: Option<String>,
pub name: Option<String>,
pub value: Option<Value>,
pub description: Option<String>,
pub checked: Option<String>,
pub disabled: Option<bool>,
pub expanded: Option<String>,
pub focused: Option<bool>,
pub modal: Option<bool>,
pub multiline: Option<bool>,
pub readonly: Option<bool>,
pub required: Option<bool>,
pub selected: Option<bool>,
pub hidden: Option<bool>,
pub children: Vec<AccessibilityNode>,
}Expand description
A single node in an accessibility-tree snapshot.
Mirrors the useful subset of Playwright’s AccessibilityNode and CDP’s
AXNode. Fields are optional since CDP omits any that don’t apply.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.role: Option<String>The ARIA/DOM role (e.g. "button", "textbox").
name: Option<String>The accessible name.
value: Option<Value>The current value, when the node has one.
description: Option<String>The accessible description.
checked: Option<String>Checked state: "checked", "unchecked", "mixed", or None.
disabled: Option<bool>Whether the node is disabled.
expanded: Option<String>Expanded state: "expanded", "collapsed", or None.
focused: Option<bool>Whether the node is focused.
modal: Option<bool>Whether the node is modal.
multiline: Option<bool>Multi-line state for text inputs.
readonly: Option<bool>Read-only state.
required: Option<bool>Required state.
selected: Option<bool>Selected state.
Whether the node is hidden from the accessibility tree.
children: Vec<AccessibilityNode>Child nodes.
Implementations§
Trait Implementations§
Source§impl Clone for AccessibilityNode
impl Clone for AccessibilityNode
Source§fn clone(&self) -> AccessibilityNode
fn clone(&self) -> AccessibilityNode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AccessibilityNode
impl Debug for AccessibilityNode
Source§impl Default for AccessibilityNode
impl Default for AccessibilityNode
Source§fn default() -> AccessibilityNode
fn default() -> AccessibilityNode
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AccessibilityNode
impl RefUnwindSafe for AccessibilityNode
impl Send for AccessibilityNode
impl Sync for AccessibilityNode
impl Unpin for AccessibilityNode
impl UnsafeUnpin for AccessibilityNode
impl UnwindSafe for AccessibilityNode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more