pub struct ConfirmationResponse {
pub approved: bool,
pub reason: Option<String>,
}Expand description
Confirmation response from user
Fields§
§approved: boolWhether the tool execution was approved
reason: Option<String>Optional reason for rejection
Trait Implementations§
Source§impl Clone for ConfirmationResponse
impl Clone for ConfirmationResponse
Source§fn clone(&self) -> ConfirmationResponse
fn clone(&self) -> ConfirmationResponse
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 ConfirmationResponse
impl Debug for ConfirmationResponse
Source§impl<'de> Deserialize<'de> for ConfirmationResponse
impl<'de> Deserialize<'de> for ConfirmationResponse
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 ConfirmationResponse
impl RefUnwindSafe for ConfirmationResponse
impl Send for ConfirmationResponse
impl Sync for ConfirmationResponse
impl Unpin for ConfirmationResponse
impl UnsafeUnpin for ConfirmationResponse
impl UnwindSafe for ConfirmationResponse
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