pub struct McpProgressNotification {
pub progress_token: String,
pub progress: u64,
pub total: Option<u64>,
pub message: Option<String>,
}Expand description
A progress notification from an MCP server during a long-running operation.
Fields§
§progress_token: StringOpaque token identifying the operation.
progress: u64Number of units completed so far.
total: Option<u64>Total number of units (if known).
message: Option<String>Human-readable description of current activity.
Trait Implementations§
Source§impl Clone for McpProgressNotification
impl Clone for McpProgressNotification
Source§fn clone(&self) -> McpProgressNotification
fn clone(&self) -> McpProgressNotification
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 McpProgressNotification
impl Debug for McpProgressNotification
Source§impl<'de> Deserialize<'de> for McpProgressNotification
impl<'de> Deserialize<'de> for McpProgressNotification
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 McpProgressNotification
impl RefUnwindSafe for McpProgressNotification
impl Send for McpProgressNotification
impl Sync for McpProgressNotification
impl Unpin for McpProgressNotification
impl UnsafeUnpin for McpProgressNotification
impl UnwindSafe for McpProgressNotification
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