pub struct ElementSelectorIR {
pub context: Option<SelectorContext>,
pub role: Option<String>,
pub name: Option<String>,
pub identifier: Option<String>,
pub text: Option<TextMatchIR>,
pub value: Option<String>,
pub css: Option<String>,
}Expand description
Structured element selector (isomorphic to DeviceRail ElementSelector).
At least one property must be present (minProperties: 1) — enforced by
the schema; serde-side an all-None value is representable and left to
the compiler to reject.
Fields§
§context: Option<SelectorContext>UI context scoping (native/web, optional context id).
role: Option<String>Accessibility role.
name: Option<String>Accessible name.
identifier: Option<String>Stable identifier (resource id / test id).
text: Option<TextMatchIR>Text content match.
value: Option<String>Current value match.
css: Option<String>CSS selector (web contexts).
Trait Implementations§
Source§impl Clone for ElementSelectorIR
impl Clone for ElementSelectorIR
Source§fn clone(&self) -> ElementSelectorIR
fn clone(&self) -> ElementSelectorIR
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 ElementSelectorIR
impl Debug for ElementSelectorIR
Source§impl Default for ElementSelectorIR
impl Default for ElementSelectorIR
Source§fn default() -> ElementSelectorIR
fn default() -> ElementSelectorIR
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ElementSelectorIR
impl<'de> Deserialize<'de> for ElementSelectorIR
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 JsonSchema for ElementSelectorIR
impl JsonSchema for ElementSelectorIR
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 ElementSelectorIR
impl PartialEq for ElementSelectorIR
Source§impl Serialize for ElementSelectorIR
impl Serialize for ElementSelectorIR
impl StructuralPartialEq for ElementSelectorIR
Auto Trait Implementations§
impl Freeze for ElementSelectorIR
impl RefUnwindSafe for ElementSelectorIR
impl Send for ElementSelectorIR
impl Sync for ElementSelectorIR
impl Unpin for ElementSelectorIR
impl UnsafeUnpin for ElementSelectorIR
impl UnwindSafe for ElementSelectorIR
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