pub struct IntentHints {
pub role: Option<String>,
pub near_text: Option<TextMatch>,
pub accessible_name: Option<String>,
pub ordinal: Option<usize>,
pub frame_path: Vec<TargetSpec>,
pub shadow_path: Vec<TargetSpec>,
pub allow_best_match: bool,
}Expand description
Optional targeting hints for intents. All fields are optional on the wire
(#[serde(default)]); a body like {"role":"textbox"} must deserialize.
Fields§
§role: Option<String>§near_text: Option<TextMatch>§accessible_name: Option<String>Accessible name of the control, matched exactly. Accepts an
a11y_snapshot node’s target verbatim, which carries
{role, accessibleName, ordinal} – before this existed the field was
dropped silently and the intent resolved on role and ordinal alone.
Equivalent to near_text: Exact; setting both to different values is
refused rather than resolved.
ordinal: Option<usize>§frame_path: Vec<TargetSpec>§shadow_path: Vec<TargetSpec>§allow_best_match: boolTrait Implementations§
Source§impl Clone for IntentHints
impl Clone for IntentHints
Source§impl Debug for IntentHints
impl Debug for IntentHints
Source§impl Default for IntentHints
impl Default for IntentHints
Source§impl<'de> Deserialize<'de> for IntentHintswhere
IntentHints: Default,
impl<'de> Deserialize<'de> for IntentHintswhere
IntentHints: Default,
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
Auto Trait Implementations§
impl Freeze for IntentHints
impl RefUnwindSafe for IntentHints
impl Send for IntentHints
impl Sync for IntentHints
impl Unpin for IntentHints
impl UnsafeUnpin for IntentHints
impl UnwindSafe for IntentHints
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