pub struct ElementSummary {
pub role: Option<Role>,
pub name: Option<String>,
pub id: Option<String>,
pub text: Option<String>,
pub bounds: Rect,
pub enabled: bool,
}Expand description
Element summary — projected view of an A11yNode used in
AI-readable failure prompts and driver.describe() output.
role is Some(Role) for known XCUIElement types, None otherwise
(serde serializes None as null and omits via skip_serializing_if;
readers must accept both shapes).
Fields§
§role: Option<Role>Semantic role (None when the underlying XCUIElement type doesn’t map).
name: Option<String>Primary display name (label → title → text → value → placeholder).
id: Option<String>Accessibility identifier (node.identifier), if present.
text: Option<String>Visible text, only when distinct from name.
bounds: RectGeometric bounds in logical points.
enabled: boolWhether the element is currently enabled (interactable).
Trait Implementations§
Source§impl Clone for ElementSummary
impl Clone for ElementSummary
Source§fn clone(&self) -> ElementSummary
fn clone(&self) -> ElementSummary
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ElementSummary
impl Debug for ElementSummary
Source§impl<'de> Deserialize<'de> for ElementSummary
impl<'de> Deserialize<'de> for ElementSummary
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
Source§impl PartialEq for ElementSummary
impl PartialEq for ElementSummary
Source§fn eq(&self, other: &ElementSummary) -> bool
fn eq(&self, other: &ElementSummary) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ElementSummary
impl Serialize for ElementSummary
impl StructuralPartialEq for ElementSummary
Auto Trait Implementations§
impl Freeze for ElementSummary
impl RefUnwindSafe for ElementSummary
impl Send for ElementSummary
impl Sync for ElementSummary
impl Unpin for ElementSummary
impl UnsafeUnpin for ElementSummary
impl UnwindSafe for ElementSummary
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