pub struct RunApproveRequest {
pub response: Option<String>,
}Expand description
The body is optional and carries at most a response for the agent. An unknown field is
REFUSED, not ignored: {"approved": false} sent here used to be stripped in silence while
the endpoint approved anyway and answered {"approved": true}. To refuse a tool call, POST
/runs/{runId}/reject.
Fields§
§response: Option<String>Optional message passed back to the agent alongside the approval.
Trait Implementations§
Source§impl Clone for RunApproveRequest
impl Clone for RunApproveRequest
Source§fn clone(&self) -> RunApproveRequest
fn clone(&self) -> RunApproveRequest
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 RunApproveRequest
impl Debug for RunApproveRequest
Source§impl Default for RunApproveRequest
impl Default for RunApproveRequest
Source§fn default() -> RunApproveRequest
fn default() -> RunApproveRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RunApproveRequest
impl<'de> Deserialize<'de> for RunApproveRequest
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 RunApproveRequest
impl PartialEq for RunApproveRequest
Source§impl Serialize for RunApproveRequest
impl Serialize for RunApproveRequest
impl StructuralPartialEq for RunApproveRequest
Auto Trait Implementations§
impl Freeze for RunApproveRequest
impl RefUnwindSafe for RunApproveRequest
impl Send for RunApproveRequest
impl Sync for RunApproveRequest
impl Unpin for RunApproveRequest
impl UnsafeUnpin for RunApproveRequest
impl UnwindSafe for RunApproveRequest
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