pub struct ElementSelector {
pub context: Option<UiContextSelector>,
pub role: Option<String>,
pub name: Option<String>,
pub value: Option<String>,
pub identifier: Option<String>,
pub text: Option<TextMatch>,
pub css: Option<String>,
}Expand description
Cross-channel selector. Native contexts use accessibility fields; web contexts may additionally use CSS. Context selection never carries a stale document epoch; resolved node references always carry the full context.
Fields§
§context: Option<UiContextSelector>§role: Option<String>§name: Option<String>§value: Option<String>§identifier: Option<String>§text: Option<TextMatch>§css: Option<String>Implementations§
Trait Implementations§
Source§impl Clone for ElementSelector
impl Clone for ElementSelector
Source§fn clone(&self) -> ElementSelector
fn clone(&self) -> ElementSelector
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 ElementSelector
impl Debug for ElementSelector
Source§impl Default for ElementSelector
impl Default for ElementSelector
Source§fn default() -> ElementSelector
fn default() -> ElementSelector
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ElementSelector
impl<'de> Deserialize<'de> for ElementSelector
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 ElementSelector
Source§impl JsonSchema for ElementSelector
impl JsonSchema for ElementSelector
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 ElementSelector
impl PartialEq for ElementSelector
Source§impl Serialize for ElementSelector
impl Serialize for ElementSelector
impl StructuralPartialEq for ElementSelector
Auto Trait Implementations§
impl Freeze for ElementSelector
impl RefUnwindSafe for ElementSelector
impl Send for ElementSelector
impl Sync for ElementSelector
impl Unpin for ElementSelector
impl UnsafeUnpin for ElementSelector
impl UnwindSafe for ElementSelector
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