pub struct Node {
pub role: Role,
pub name: Option<String>,
pub value: Option<String>,
pub description: Option<String>,
pub bounds: Option<Rect>,
pub actions: Vec<Action>,
pub states: StateSet,
pub numeric_value: Option<f64>,
pub min_value: Option<f64>,
pub max_value: Option<f64>,
pub stable_id: Option<String>,
pub raw: RawPlatformData,
/* private fields */
}Expand description
A single element in the accessibility tree snapshot.
Fields§
§role: RoleElement role
name: Option<String>Human-readable name (title, label)
value: Option<String>Current value (text content, slider position, etc.)
description: Option<String>Supplementary description (tooltip, help text)
bounds: Option<Rect>Bounding rectangle in screen pixels
actions: Vec<Action>Available actions
states: StateSetCurrent state flags
numeric_value: Option<f64>Numeric value for range controls (sliders, progress bars, spinners).
min_value: Option<f64>Minimum value for range controls.
max_value: Option<f64>Maximum value for range controls.
stable_id: Option<String>Platform-assigned stable identifier for cross-snapshot correlation.
- macOS:
AXIdentifier - Windows:
AutomationId - Linux: D-Bus
object_path
Not all elements have one.
raw: RawPlatformDataPlatform-specific raw data
Implementations§
Source§impl Node
impl Node
Sourcepub fn synthetic_empty() -> Self
pub fn synthetic_empty() -> Self
Create a synthetic empty node, used as a placeholder when a wait condition is satisfied by the absence of a node (e.g. Detached/Hidden).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Node
impl<'de> Deserialize<'de> for Node
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 Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnsafeUnpin for Node
impl UnwindSafe for Node
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