pub struct Selector {
pub label: Option<TextMatch>,
pub value: Option<TextMatch>,
pub role: Option<String>,
pub id: Option<TextMatch>,
pub within: Option<Box<Selector>>,
pub index: Option<usize>,
}Fields§
§label: Option<TextMatch>§value: Option<TextMatch>§role: Option<String>§id: Option<TextMatch>accessibilityIdentifier, or (exact form only) the id handle from
iph read.
within: Option<Box<Selector>>§index: Option<usize>Implementations§
Source§impl Selector
impl Selector
pub fn parse(input: &str) -> Result<Selector>
Sourcepub fn from_value(v: &Value) -> Result<Selector>
pub fn from_value(v: &Value) -> Result<Selector>
Accepts a selector string or a structured object.
pub fn describe(&self) -> String
Sourcepub fn needs_identifier(&self) -> bool
pub fn needs_identifier(&self) -> bool
True when the selector reads the identifier, which only the slower second pass of a reading carries.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Selector
impl Freeze for Selector
impl Move for Selector
impl RefUnwindSafe for Selector
impl Send for Selector
impl Sync for Selector
impl Unpin for Selector
impl UnsafeUnpin for Selector
impl UnwindSafe for Selector
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