pub struct ProactiveAction {Show 17 fields
pub id: String,
pub agent_id: String,
pub problem_id: Option<String>,
pub action_type: String,
pub description: String,
pub reasoning: String,
pub estimated_impact: Option<String>,
pub risk_level: ActionRisk,
pub status: ActionStatus,
pub auto_approved: bool,
pub approved_at: Option<DateTime<Utc>>,
pub approved_by: Option<String>,
pub executed_at: Option<DateTime<Utc>>,
pub result: Option<String>,
pub error: Option<String>,
pub parameters: HashMap<String, Value>,
pub created_at: DateTime<Utc>,
}Expand description
A proactive action proposed by an agent
Fields§
§id: StringUnique action ID
agent_id: StringAgent proposing the action
problem_id: Option<String>Related problem ID (if any)
action_type: StringType of action (e.g., “send_email”, “schedule_maintenance”)
description: StringHuman-readable description
reasoning: StringWhy the agent recommends this action
estimated_impact: Option<String>Estimated impact/benefit
risk_level: ActionRiskRisk level
status: ActionStatusCurrent status
auto_approved: boolWhether it was auto-approved based on permission level
approved_at: Option<DateTime<Utc>>When the action was approved
approved_by: Option<String>Who approved (user ID or “auto”)
executed_at: Option<DateTime<Utc>>When the action was executed
result: Option<String>Result of execution
error: Option<String>Error if execution failed
parameters: HashMap<String, Value>Action parameters
created_at: DateTime<Utc>When the action was created
Trait Implementations§
Source§impl Clone for ProactiveAction
impl Clone for ProactiveAction
Source§fn clone(&self) -> ProactiveAction
fn clone(&self) -> ProactiveAction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProactiveAction
impl Debug for ProactiveAction
Source§impl<'de> Deserialize<'de> for ProactiveAction
impl<'de> Deserialize<'de> for ProactiveAction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ProactiveAction
impl RefUnwindSafe for ProactiveAction
impl Send for ProactiveAction
impl Sync for ProactiveAction
impl Unpin for ProactiveAction
impl UnwindSafe for ProactiveAction
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more