pub struct Access {
pub role: AccessRole,
pub label: Option<String>,
pub placeholder: Option<String>,
pub value: Option<String>,
pub checked: Option<bool>,
}Expand description
The accessibility facts about one node: what it is, what it’s called, and what state it’s in. Attached during the build and carried through layout so the shell can publish a tree with real geometry.
Fields§
§role: AccessRole§label: Option<String>The accessible name, what a screen reader announces. For a control this is its label, not its value.
placeholder: Option<String>An input’s placeholder. Kept apart from label because it is only a
fallback name: a real label (authored label=, or a <text for="…">)
must win, and labels are linked after the build, so baking the placeholder
into label would let a hint outrank the actual label.
value: Option<String>Current value, for inputs and selects.
checked: Option<bool>Checked state, for checkboxes and radios.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Access
Auto Trait Implementations§
impl Freeze for Access
impl RefUnwindSafe for Access
impl Send for Access
impl Sync for Access
impl Unpin for Access
impl UnsafeUnpin for Access
impl UnwindSafe for Access
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