pub enum WorkflowStep {
TypeText(String),
PressKey(KeyCombo),
Delay {
millis: u64,
},
RunAppleScript(String),
RunShellCommand(String),
}Expand description
One step in a Action::Workflow. A workflow is a Vec<WorkflowStep>
executed in order by the inject layer; Delay introduces a pause between
the surrounding steps.
PressKey reuses KeyCombo (the same model as Action::CustomShortcut)
so a step can press a key chord. The other variants mirror their standalone
Action counterparts.
Variants§
TypeText(String)
Type a unicode string (see Action::TypeText).
PressKey(KeyCombo)
Press a key chord (see Action::CustomShortcut / KeyCombo).
Delay
Wait millis milliseconds before the next step.
RunAppleScript(String)
Run an AppleScript (see Action::RunAppleScript).
RunShellCommand(String)
Run a shell command (see Action::RunShellCommand).
Trait Implementations§
Source§impl Clone for WorkflowStep
impl Clone for WorkflowStep
Source§fn clone(&self) -> WorkflowStep
fn clone(&self) -> WorkflowStep
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 WorkflowStep
impl Debug for WorkflowStep
Source§impl<'de> Deserialize<'de> for WorkflowStep
impl<'de> Deserialize<'de> for WorkflowStep
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
impl Eq for WorkflowStep
Source§impl Hash for WorkflowStep
impl Hash for WorkflowStep
Source§impl PartialEq for WorkflowStep
impl PartialEq for WorkflowStep
Source§impl Serialize for WorkflowStep
impl Serialize for WorkflowStep
impl StructuralPartialEq for WorkflowStep
Auto Trait Implementations§
impl Freeze for WorkflowStep
impl RefUnwindSafe for WorkflowStep
impl Send for WorkflowStep
impl Sync for WorkflowStep
impl Unpin for WorkflowStep
impl UnsafeUnpin for WorkflowStep
impl UnwindSafe for WorkflowStep
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.