pub struct PolicyDecisionEvent {
pub tool_call: PolicyDecisionToolCall,
pub decision: ApprovalStatus,
pub enforced: bool,
pub effective: ApprovalStatus,
pub timestamp: DateTime<Utc>,
}Expand description
The observed and effective approval decisions for one tool call.
Fields§
§tool_call: PolicyDecisionToolCallThe evaluated tool invocation.
decision: ApprovalStatusNormalized decision returned by the wrapped policy.
enforced: boolWhether the effective decision enforces the wrapped policy.
effective: ApprovalStatusStatus the generation loop will act on.
timestamp: DateTime<Utc>UTC evaluation time, serialized as an ISO 8601 string.
Trait Implementations§
Source§impl Clone for PolicyDecisionEvent
impl Clone for PolicyDecisionEvent
Source§fn clone(&self) -> PolicyDecisionEvent
fn clone(&self) -> PolicyDecisionEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PolicyDecisionEvent
impl Debug for PolicyDecisionEvent
Source§impl<'de> Deserialize<'de> for PolicyDecisionEvent
impl<'de> Deserialize<'de> for PolicyDecisionEvent
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
Source§impl PartialEq for PolicyDecisionEvent
impl PartialEq for PolicyDecisionEvent
Source§impl Serialize for PolicyDecisionEvent
impl Serialize for PolicyDecisionEvent
impl StructuralPartialEq for PolicyDecisionEvent
Auto Trait Implementations§
impl Freeze for PolicyDecisionEvent
impl RefUnwindSafe for PolicyDecisionEvent
impl Send for PolicyDecisionEvent
impl Sync for PolicyDecisionEvent
impl Unpin for PolicyDecisionEvent
impl UnsafeUnpin for PolicyDecisionEvent
impl UnwindSafe for PolicyDecisionEvent
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