pub struct IntentHints {
pub role: Option<String>,
pub near_text: Option<TextMatch>,
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>§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§fn clone(&self) -> IntentHints
fn clone(&self) -> IntentHints
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 IntentHints
impl Debug for IntentHints
Source§impl Default for IntentHints
impl Default for IntentHints
Source§fn default() -> IntentHints
fn default() -> IntentHints
Returns the “default value” for a type. Read more
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