Skip to main content

ReflexCommand

Enum ReflexCommand 

Source
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

ยงdescription: String
ยงtrigger_type: String
ยงtrigger_config: String
ยงaction_type: String
ยงaction_config: String
ยงstatus: String
ยง

Update

Update an existing reflex entry.

Fields

ยงdescription: Option<String>
ยงtrigger_type: Option<String>
ยงtrigger_config: Option<String>
ยงaction_type: Option<String>
ยงaction_config: Option<String>
ยง

Get

Retrieve a reflex entry by ID.

Fields

ยง

List

List reflex entries.

ยง

Delete

Delete a reflex entry.

Fields

ยง

Run

Run active reflex actions by id or trigger type.

Fields

ยงtrigger_type: Option<String>
ยง

AddHeartbeatLoop

Install a canonical human-triggered heartbeat autoclaim reflex.

ยง

AddHumanTriggerLoop

Install a human trigger loop reflex (trigger -> task -> worker run -> lesson).

Fields

ยงtask_title: String
ยงpriority: String
ยงmax_tasks: usize
ยง

AddHealthTrigger

Install a condition-based health trigger reflex that creates remediation tasks when health claims enter STALE or CONTRADICTED states.

Fields

ยงwatch_states: String

Health states that trigger remediation (comma-separated: STALE,CONTRADICTED)

ยงpriority: String

Trait Implementationsยง

Sourceยง

impl Debug for ReflexCommand

Sourceยง

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Sourceยง

impl FromArgMatches for ReflexCommand

Sourceยง

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Sourceยง

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Sourceยง

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>

Assign values from ArgMatches to self.
Sourceยง

impl Subcommand for ReflexCommand

Sourceยง

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
Sourceยง

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 more
Sourceยง

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

Auto Trait Implementationsยง

Blanket Implementationsยง

Sourceยง

impl<T> Any for T
where T: 'static + ?Sized,

Sourceยง

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Sourceยง

impl<T> Borrow<T> for T
where T: ?Sized,

Sourceยง

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Sourceยง

impl<T> BorrowMut<T> for T
where T: ?Sized,

Sourceยง

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Sourceยง

impl<T> From<T> for T

Sourceยง

fn from(t: T) -> T

Returns the argument unchanged.

Sourceยง

impl<T, U> Into<U> for T
where U: From<T>,

Sourceยง

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Sourceยง

impl<T> Same for T

Sourceยง

type Output = T

Should always be Self
Sourceยง

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Sourceยง

type Error = Infallible

The type returned in the event of a conversion error.
Sourceยง

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Sourceยง

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Sourceยง

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Sourceยง

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.