pub struct ControlCancelRequest {
pub request_id: String,
pub session_id: Option<String>,
}Expand description
Withdrawal of an in-flight ControlRequest (control_cancel_request).
Either side may send this for a request it originated. The CLI sends it
when it no longer needs the answer, for example a pending can_use_tool
prompt after the turn was interrupted, or one another client already
answered. The receiver should drop any UI or pending state for
request_id; a ControlResponse sent afterwards is ignored. There is
no reply to the cancel itself.
Fields§
§request_id: StringThe request_id of the ControlRequest being withdrawn.
session_id: Option<String>Session id, stamped only by the remote bridge.
Trait Implementations§
Source§impl Clone for ControlCancelRequest
impl Clone for ControlCancelRequest
Source§impl Debug for ControlCancelRequest
impl Debug for ControlCancelRequest
Source§impl<'de> Deserialize<'de> for ControlCancelRequest
impl<'de> Deserialize<'de> for ControlCancelRequest
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 ControlCancelRequest
impl RefUnwindSafe for ControlCancelRequest
impl Send for ControlCancelRequest
impl Sync for ControlCancelRequest
impl Unpin for ControlCancelRequest
impl UnsafeUnpin for ControlCancelRequest
impl UnwindSafe for ControlCancelRequest
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