pub struct DirectHit {
pub roi: Target,
pub roi_offset: Rect,
}Expand description
Direct hit recognition - always matches without performing actual recognition.
Use when you want to execute an action without image matching.
Fields§
§roi: TargetRecognition region. Default: \[0,0,0,0\] (full screen).
roi_offset: RectOffset applied to the ROI.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DirectHit
impl<'de> Deserialize<'de> for DirectHit
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 DirectHit
impl RefUnwindSafe for DirectHit
impl Send for DirectHit
impl Sync for DirectHit
impl Unpin for DirectHit
impl UnwindSafe for DirectHit
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