pub enum ComputerAction {
Click(ClickParam),
DoubleClick(DoubleClickAction),
Drag(DragParam),
Keypress(KeyPressAction),
Move(MoveParam),
Screenshot,
Scroll(ScrollParam),
Type(TypeParam),
Wait,
}Expand description
Represents all user‐triggered actions.
Variants§
Click(ClickParam)
A click action.
DoubleClick(DoubleClickAction)
A double click action.
Drag(DragParam)
A drag action.
Keypress(KeyPressAction)
A collection of keypresses the model would like to perform.
Move(MoveParam)
A mouse move action.
Screenshot
A screenshot action.
Scroll(ScrollParam)
A scroll action.
Type(TypeParam)
An action to type in text.
Wait
A wait action.
Trait Implementations§
Source§impl Clone for ComputerAction
impl Clone for ComputerAction
Source§fn clone(&self) -> ComputerAction
fn clone(&self) -> ComputerAction
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 ComputerAction
impl Debug for ComputerAction
Source§impl<'de> Deserialize<'de> for ComputerAction
impl<'de> Deserialize<'de> for ComputerAction
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ComputerAction, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ComputerAction, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ComputerAction
impl PartialEq for ComputerAction
Source§impl Serialize for ComputerAction
impl Serialize for ComputerAction
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ComputerAction
Auto Trait Implementations§
impl Freeze for ComputerAction
impl RefUnwindSafe for ComputerAction
impl Send for ComputerAction
impl Sync for ComputerAction
impl Unpin for ComputerAction
impl UnsafeUnpin for ComputerAction
impl UnwindSafe for ComputerAction
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