pub enum LocatorQuery {
Node {
id: i32,
},
Css {
selector: String,
},
Text {
text: String,
exact: bool,
},
Placeholder {
text: String,
},
Role {
role: String,
},
BackendNode {
id: i64,
},
}Expand description
A query evaluated afresh immediately before an action.
Variants§
Node
Resolve a pinned frontend node from an Element handle.
Css
Match a CSS selector.
Text
Match element text.
Placeholder
Match an exact placeholder attribute.
Role
Match an explicit ARIA role.
BackendNode
Resolve a pinned node without retargeting a replacement.
Trait Implementations§
Source§impl Clone for LocatorQuery
impl Clone for LocatorQuery
Source§fn clone(&self) -> LocatorQuery
fn clone(&self) -> LocatorQuery
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 LocatorQuery
impl Debug for LocatorQuery
Source§impl<'de> Deserialize<'de> for LocatorQuery
impl<'de> Deserialize<'de> for LocatorQuery
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LocatorQuery, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LocatorQuery, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for LocatorQuery
Source§impl JsonSchema for LocatorQuery
impl JsonSchema for LocatorQuery
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for LocatorQuery
impl PartialEq for LocatorQuery
Source§impl Serialize for LocatorQuery
impl Serialize for LocatorQuery
Source§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
impl StructuralPartialEq for LocatorQuery
Auto Trait Implementations§
impl Freeze for LocatorQuery
impl RefUnwindSafe for LocatorQuery
impl Send for LocatorQuery
impl Sync for LocatorQuery
impl Unpin for LocatorQuery
impl UnsafeUnpin for LocatorQuery
impl UnwindSafe for LocatorQuery
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