#[non_exhaustive]pub struct ElementData {
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
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: StringDisplay role, lowercase and human-readable (button, text field).
platform_role: StringThe platform’s raw role (AXButton, ControlType.Button, push button).
title: Option<String>Primary label or name.
value: Option<String>Current value (text contents, slider position, checkbox state).
description: Option<String>Accessibility description, when different from the title.
help: Option<String>Tooltip or help text.
placeholder: Option<String>Placeholder text of empty text fields.
identifier: Option<String>Developer-assigned identifier.
url: Option<String>Link target.
frame: Option<Rect>Frame in screen points (not window-relative).
states: ElementStatesStates.
actions: Vec<Action>Available actions.
Implementations§
Trait Implementations§
Source§impl Clone for ElementData
impl Clone for ElementData
Source§impl Debug for ElementData
impl Debug for ElementData
Source§impl Default for ElementData
impl Default for ElementData
Source§impl PartialEq for ElementData
impl PartialEq for ElementData
impl StructuralPartialEq for ElementData
Auto Trait Implementations§
impl Forget for ElementData
impl Freeze for ElementData
impl RefUnwindSafe for ElementData
impl Send for ElementData
impl Sync for ElementData
impl Unpin for ElementData
impl UnsafeUnpin for ElementData
impl UnwindSafe for ElementData
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