Skip to main content

ProposedAction

Trait ProposedAction 

Source
pub trait ProposedAction: Send + Sync {
    // Required methods
    fn action_id(&self) -> &str;
    fn agent_id(&self) -> &str;
    fn proposed_at(&self) -> DateTime<Utc>;
    fn state_deltas(&self) -> &[StateDelta];
    fn priority(&self) -> ActionPriority;
}
Expand description

Trait representing an action proposed by an agent for safety certification.

Object-safe: can be used as dyn ProposedAction.

Required Methods§

Source

fn action_id(&self) -> &str

Unique identifier for this action.

Source

fn agent_id(&self) -> &str

Identifier of the agent proposing the action.

Source

fn proposed_at(&self) -> DateTime<Utc>

When the action was proposed.

Source

fn state_deltas(&self) -> &[StateDelta]

State deltas this action would cause.

Source

fn priority(&self) -> ActionPriority

Priority level.

Implementors§