pub struct CancelledNotification {
pub request_id: RequestId,
pub reason: Option<String>,
}
Expand description
Cancellation notification per MCP 2025-06-18 specification
Fields§
§request_id: RequestId
The ID of the request to cancel This MUST correspond to the ID of a request previously issued in the same direction
reason: Option<String>
An optional string describing the reason for the cancellation This MAY be logged or presented to the user
Trait Implementations§
Source§impl Clone for CancelledNotification
impl Clone for CancelledNotification
Source§fn clone(&self) -> CancelledNotification
fn clone(&self) -> CancelledNotification
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 CancelledNotification
impl Debug for CancelledNotification
Source§impl<'de> Deserialize<'de> for CancelledNotification
impl<'de> Deserialize<'de> for CancelledNotification
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 CancelledNotification
impl RefUnwindSafe for CancelledNotification
impl Send for CancelledNotification
impl Sync for CancelledNotification
impl Unpin for CancelledNotification
impl UnwindSafe for CancelledNotification
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