pub enum Script<'a> {
AppleScript(&'a str),
ShellCommand(&'a str),
Workflow(&'a [WorkflowStep]),
}Expand description
A power-user scripting escape hatch, borrowed from the originating
Action::RunAppleScript, Action::RunShellCommand, or
Action::Workflow.
Variants§
AppleScript(&'a str)
Run an AppleScript source string. macOS-only; other backends warn.
ShellCommand(&'a str)
Run a shell command string.
Workflow(&'a [WorkflowStep])
Run an ordered sequence of workflow steps.
Trait Implementations§
impl<'a> Copy for Script<'a>
impl<'a> Eq for Script<'a>
impl<'a> StructuralPartialEq for Script<'a>
Auto Trait Implementations§
impl<'a> Freeze for Script<'a>
impl<'a> RefUnwindSafe for Script<'a>
impl<'a> Send for Script<'a>
impl<'a> Sync for Script<'a>
impl<'a> Unpin for Script<'a>
impl<'a> UnsafeUnpin for Script<'a>
impl<'a> UnwindSafe for Script<'a>
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,
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.