pub struct McpResourceUpdatedNotificationParam {
pub uri: String,
}Expand description
Re-exports of the rmcp wire-protocol types this crate now surfaces directly instead of wrapping. Pull these in to pattern-match on tool annotations, content blocks, structured tool output, embedded resources, sampling / elicitation requests, progress and log notifications, etc. Parameters for a resource update notification
Fields§
§uri: StringThe URI of the resource that was updated
Implementations§
Source§impl ResourceUpdatedNotificationParam
impl ResourceUpdatedNotificationParam
Sourcepub fn new(uri: impl Into<String>) -> ResourceUpdatedNotificationParam
pub fn new(uri: impl Into<String>) -> ResourceUpdatedNotificationParam
Create a new ResourceUpdatedNotificationParam.
Trait Implementations§
Source§impl Clone for ResourceUpdatedNotificationParam
impl Clone for ResourceUpdatedNotificationParam
Source§fn clone(&self) -> ResourceUpdatedNotificationParam
fn clone(&self) -> ResourceUpdatedNotificationParam
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<'de> Deserialize<'de> for ResourceUpdatedNotificationParam
impl<'de> Deserialize<'de> for ResourceUpdatedNotificationParam
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ResourceUpdatedNotificationParam, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ResourceUpdatedNotificationParam, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ResourceUpdatedNotificationParam
impl PartialEq for ResourceUpdatedNotificationParam
Source§fn eq(&self, other: &ResourceUpdatedNotificationParam) -> bool
fn eq(&self, other: &ResourceUpdatedNotificationParam) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ResourceUpdatedNotificationParam
impl Serialize for ResourceUpdatedNotificationParam
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ResourceUpdatedNotificationParam
Auto Trait Implementations§
impl Freeze for ResourceUpdatedNotificationParam
impl RefUnwindSafe for ResourceUpdatedNotificationParam
impl Send for ResourceUpdatedNotificationParam
impl Sync for ResourceUpdatedNotificationParam
impl Unpin for ResourceUpdatedNotificationParam
impl UnsafeUnpin for ResourceUpdatedNotificationParam
impl UnwindSafe for ResourceUpdatedNotificationParam
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