#[non_exhaustive]pub struct Element {Show 16 fields
pub index: usize,
pub parent: Option<usize>,
pub children: Vec<usize>,
pub depth: usize,
pub role: String,
pub platform_role: String,
pub title: Option<String>,
pub value: Option<String>,
pub description: Option<String>,
pub help: Option<String>,
pub placeholder: Option<String>,
pub identifier: Option<String>,
pub url: Option<String>,
pub frame: Option<Rect>,
pub states: ElementStates,
pub actions: Vec<Action>,
}Expand description
A node in a captured accessibility tree.
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.index: usizeIndex of this element within its AppState; pass it to element actions.
parent: Option<usize>Index of the nearest rendered ancestor.
children: Vec<usize>Indexes of rendered children.
depth: usizeNesting depth below the window.
role: StringDisplay role.
platform_role: StringRaw platform role.
title: Option<String>Primary label.
value: Option<String>Current value.
description: Option<String>Accessibility description.
help: Option<String>Help text.
placeholder: Option<String>Placeholder text.
identifier: Option<String>Developer identifier.
url: Option<String>Link target.
frame: Option<Rect>Frame in screen points.
states: ElementStatesStates.
actions: Vec<Action>Available actions.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Element
Auto Trait Implementations§
impl Forget for Element
impl Freeze for Element
impl RefUnwindSafe for Element
impl Send for Element
impl Sync for Element
impl Unpin for Element
impl UnsafeUnpin for Element
impl UnwindSafe for Element
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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