pub enum RunCommands {
Create {
workflow: String,
payload: Option<String>,
payload_file: Option<PathBuf>,
max_retries: Option<u32>,
idempotency_key: Option<String>,
max_cost: Option<f64>,
},
List {
status: Option<String>,
workflow: Option<String>,
created_by: Option<Uuid>,
page: Option<u32>,
per_page: Option<u32>,
},
Get {
id: Uuid,
},
Cancel {
id: Uuid,
},
Approve {
id: Uuid,
},
Retry {
id: Uuid,
},
}Expand description
Available run subcommands.
Variants§
Create
Create a new run for a workflow.
Fields
§
max_retries: Option<u32>How many times to replay the run automatically after a transient failure. Defaults to 0 (no automatic retry).
List
List runs with optional filters.
Fields
Get
Get details of a specific run.
Cancel
Cancel a pending or running run.
Approve
Approve a run waiting for approval.
Retry
Retry a failed run.
Trait Implementations§
Source§impl Debug for RunCommands
impl Debug for RunCommands
Source§impl FromArgMatches for RunCommands
impl FromArgMatches for RunCommands
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Subcommand for RunCommands
impl Subcommand for RunCommands
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for RunCommands
impl RefUnwindSafe for RunCommands
impl Send for RunCommands
impl Sync for RunCommands
impl Unpin for RunCommands
impl UnsafeUnpin for RunCommands
impl UnwindSafe for RunCommands
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