pub struct ToolApprovalResponseContent {
pub approval_id: ApprovalId,
pub tool_call: ParsedToolCall,
pub approved: bool,
pub reason: Option<String>,
pub provider_executed: bool,
}Expand description
An approval decision made automatically by the approval policy.
Fields§
§approval_id: ApprovalIdIdentifier of the approval request.
tool_call: ParsedToolCallThe tool call the decision concerns.
approved: boolWhether execution was approved.
reason: Option<String>Reason given by the policy.
provider_executed: boolWhether the provider executes the tool.
Trait Implementations§
Source§impl Clone for ToolApprovalResponseContent
impl Clone for ToolApprovalResponseContent
Source§fn clone(&self) -> ToolApprovalResponseContent
fn clone(&self) -> ToolApprovalResponseContent
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 ToolApprovalResponseContent
impl Debug for ToolApprovalResponseContent
Source§impl<'de> Deserialize<'de> for ToolApprovalResponseContent
impl<'de> Deserialize<'de> for ToolApprovalResponseContent
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
impl StructuralPartialEq for ToolApprovalResponseContent
Auto Trait Implementations§
impl Freeze for ToolApprovalResponseContent
impl RefUnwindSafe for ToolApprovalResponseContent
impl Send for ToolApprovalResponseContent
impl Sync for ToolApprovalResponseContent
impl Unpin for ToolApprovalResponseContent
impl UnsafeUnpin for ToolApprovalResponseContent
impl UnwindSafe for ToolApprovalResponseContent
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