pub struct SelectorQuery {
pub selector: Selector,
pub scope: Option<Box<SelectorQuery>>,
pub index: Option<usize>,
pub include_hidden: bool,
}Expand description
A selector query with optional scoping and duplicate disambiguation.
Fields§
§selector: Selector§scope: Option<Box<SelectorQuery>>§index: Option<usize>Implementations§
Source§impl SelectorQuery
impl SelectorQuery
pub fn new(selector: Selector) -> Self
pub fn semantic_identifier(identifier: impl Into<String>) -> Self
pub fn widget_id(widget_id: impl Into<String>) -> Self
pub fn test_id(test_id: impl Into<String>) -> Self
pub fn accessibility_identifier(identifier: impl Into<String>) -> Self
pub fn role_label(role: impl Into<String>, label: impl Into<String>) -> Self
pub fn label(label: impl Into<String>) -> Self
pub fn scoped(self, scope: SelectorQuery) -> Self
pub fn index(self, index: usize) -> Self
Trait Implementations§
Source§impl Clone for SelectorQuery
impl Clone for SelectorQuery
Source§fn clone(&self) -> SelectorQuery
fn clone(&self) -> SelectorQuery
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 SelectorQuery
impl Debug for SelectorQuery
Source§impl<'de> Deserialize<'de> for SelectorQuery
impl<'de> Deserialize<'de> for SelectorQuery
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
impl Eq for SelectorQuery
Source§impl PartialEq for SelectorQuery
impl PartialEq for SelectorQuery
Source§impl Serialize for SelectorQuery
impl Serialize for SelectorQuery
impl StructuralPartialEq for SelectorQuery
Auto Trait Implementations§
impl Freeze for SelectorQuery
impl RefUnwindSafe for SelectorQuery
impl Send for SelectorQuery
impl Sync for SelectorQuery
impl Unpin for SelectorQuery
impl UnsafeUnpin for SelectorQuery
impl UnwindSafe for SelectorQuery
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