pub enum ReflexCommand {
Add {
name: String,
description: String,
trigger_type: String,
trigger_config: String,
action_type: String,
action_config: String,
status: String,
tags: String,
dir: Option<String>,
},
Update {
id: String,
name: Option<String>,
description: Option<String>,
trigger_type: Option<String>,
trigger_config: Option<String>,
action_type: Option<String>,
action_config: Option<String>,
status: Option<String>,
tags: Option<String>,
},
Get {
id: String,
},
List {
status: Option<String>,
scope: Option<String>,
tags: Option<String>,
name_search: Option<String>,
dir: Option<String>,
},
Delete {
id: String,
},
Run {
id: Option<String>,
trigger_type: Option<String>,
limit: usize,
},
AddHeartbeatLoop {
name: String,
agent: Option<String>,
max_claims: usize,
tags: String,
dir: Option<String>,
},
AddHumanTriggerLoop {
name: String,
agent: Option<String>,
task_title: String,
priority: String,
max_tasks: usize,
tags: String,
dir: Option<String>,
},
AddHealthTrigger {
name: String,
agent: Option<String>,
watch_states: String,
priority: String,
tags: String,
dir: Option<String>,
},
}Variantsยง
Add
Add a new reflex entry.
Fields
Update
Update an existing reflex entry.
Fields
Get
Retrieve a reflex entry by ID.
List
List reflex entries.
Fields
Delete
Delete a reflex entry.
Run
Run active reflex actions by id or trigger type.
AddHeartbeatLoop
Install a canonical human-triggered heartbeat autoclaim reflex.
AddHumanTriggerLoop
Install a human trigger loop reflex (trigger -> task -> worker run -> lesson).
Fields
AddHealthTrigger
Install a condition-based health trigger reflex that creates remediation tasks when health claims enter STALE or CONTRADICTED states.
Trait Implementationsยง
Sourceยงimpl Debug for ReflexCommand
impl Debug for ReflexCommand
Sourceยงimpl FromArgMatches for ReflexCommand
impl FromArgMatches for ReflexCommand
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 ReflexCommand
impl Subcommand for ReflexCommand
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 ReflexCommand
impl RefUnwindSafe for ReflexCommand
impl Send for ReflexCommand
impl Sync for ReflexCommand
impl Unpin for ReflexCommand
impl UnsafeUnpin for ReflexCommand
impl UnwindSafe for ReflexCommand
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