pub struct A11yNode {
pub node_id: String,
pub role: String,
pub name: Option<String>,
pub value: Option<String>,
pub bounds: Bounds,
pub children: Vec<String>,
pub focusable: bool,
pub focused: bool,
pub disabled: bool,
}Expand description
An element in the accessibility tree.
This is the primary unit of perception. Each node represents something a screen reader (e.g., VoiceOver) would announce to a blind user.
Fields§
§node_id: StringUnique identifier for this node within the page.
role: StringARIA role or inferred role from element type.
name: Option<String>Accessible name (aria-label or text content).
value: Option<String>Current value (for form inputs).
bounds: BoundsBounding box in viewport coordinates.
children: Vec<String>IDs of child nodes.
focusable: boolWhether this element can receive focus.
focused: boolWhether this element currently has focus.
disabled: boolWhether this element is disabled.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for A11yNode
impl<'de> Deserialize<'de> for A11yNode
Source§fn 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
Auto Trait Implementations§
impl Freeze for A11yNode
impl RefUnwindSafe for A11yNode
impl Send for A11yNode
impl Sync for A11yNode
impl Unpin for A11yNode
impl UnsafeUnpin for A11yNode
impl UnwindSafe for A11yNode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more