pub struct LearnedEvent {
pub ts_ms: u64,
pub event_type: String,
pub x: Option<i32>,
pub y: Option<i32>,
pub key: Option<String>,
pub element_role: Option<String>,
pub element_name: Option<String>,
pub element_id: Option<String>,
pub app_name: Option<String>,
}Expand description
A single learned action event.
Fields§
§ts_ms: u64Milliseconds since session start.
event_type: StringEvent type: click, type, hotkey, scroll, app_switch.
x: Option<i32>For clicks: screen coordinates.
y: Option<i32>§key: Option<String>For key events: the key or text typed.
element_role: Option<String>AX element info enriched at capture time.
element_name: Option<String>§element_id: Option<String>§app_name: Option<String>Trait Implementations§
Source§impl Clone for LearnedEvent
impl Clone for LearnedEvent
Source§fn clone(&self) -> LearnedEvent
fn clone(&self) -> LearnedEvent
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 LearnedEvent
impl Debug for LearnedEvent
Source§impl<'de> Deserialize<'de> for LearnedEvent
impl<'de> Deserialize<'de> for LearnedEvent
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 LearnedEvent
impl RefUnwindSafe for LearnedEvent
impl Send for LearnedEvent
impl Sync for LearnedEvent
impl Unpin for LearnedEvent
impl UnsafeUnpin for LearnedEvent
impl UnwindSafe for LearnedEvent
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