pub enum Action {
Show 20 variants
DoNothing(DoNothing),
Click(Click),
LongPress(LongPress),
Swipe(Swipe),
MultiSwipe(MultiSwipe),
TouchDown(Touch),
TouchMove(Touch),
TouchUp(TouchUp),
ClickKey(KeyList),
LongPressKey(LongPressKey),
KeyDown(SingleKey),
KeyUp(SingleKey),
InputText(InputText),
StartApp(App),
StopApp(App),
StopTask(StopTask),
Scroll(Scroll),
Command(Command),
Shell(Shell),
Custom(CustomAction),
}Expand description
Action types executed after successful recognition.
DoNothing- No actionClick- Tap/clickLongPress- Long pressSwipe- Linear swipeMultiSwipe- Multi-touch swipe- Touch actions:
TouchDown,TouchMove,TouchUp - Key actions:
ClickKey,LongPressKey,KeyDown,KeyUp InputText- Text input- App control:
StartApp,StopApp StopTask- Stop current taskScroll- Mouse wheel scrollCommand- Execute local commandShell- Execute ADB shell commandCustom- User-defined action
Variants§
DoNothing(DoNothing)
Click(Click)
LongPress(LongPress)
Swipe(Swipe)
MultiSwipe(MultiSwipe)
TouchDown(Touch)
TouchMove(Touch)
TouchUp(TouchUp)
ClickKey(KeyList)
LongPressKey(LongPressKey)
KeyDown(SingleKey)
KeyUp(SingleKey)
InputText(InputText)
StartApp(App)
StopApp(App)
StopTask(StopTask)
Scroll(Scroll)
Command(Command)
Shell(Shell)
Custom(CustomAction)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Action
impl<'de> Deserialize<'de> for Action
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 Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnwindSafe for Action
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