pub struct A11y {
pub role: String,
pub label: String,
pub description: String,
pub urgency: String,
}Expand description
An accessibility record carried as open metadata on a scene node.
The record names a semantic role, an accessible label and description, and
an urgency token. It is intentionally surface-neutral: a browser maps these
to ARIA attributes and a terminal to its own affordances, but neither
vocabulary is stored in the node. Round-trips through with_a11y /
a11y_of.
Fields§
§role: StringSemantic role token (for example button, alert, list).
label: StringAccessible label (the concise name of the node).
description: StringLonger accessible description, or empty when there is none.
urgency: StringUrgency token (for example polite, assertive, off).
Trait Implementations§
impl Eq for A11y
impl StructuralPartialEq for A11y
Auto Trait Implementations§
impl Freeze for A11y
impl RefUnwindSafe for A11y
impl Send for A11y
impl Sync for A11y
impl Unpin for A11y
impl UnsafeUnpin for A11y
impl UnwindSafe for A11y
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