Struct Node
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§
§impl Node
impl Node
pub fn synthetic_empty() -> Node
pub fn synthetic_empty() -> Node
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§
§impl<'de> Deserialize<'de> for Node
impl<'de> Deserialize<'de> for Node
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Node, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Node, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Serialize for Node
impl Serialize for Node
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. 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 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