pub struct ResourceUpdateNotification {
pub uri: String,
pub change_type: ResourceChangeType,
pub content: Option<ResourceContents>,
pub timestamp: String,
pub metadata: HashMap<String, Value>,
}
Expand description
Resource update notification
Fields§
§uri: String
URI of the resource that changed
change_type: ResourceChangeType
Type of change (created, modified, deleted)
content: Option<ResourceContents>
Updated resource content (for create/modify operations)
timestamp: String
Timestamp of the change
metadata: HashMap<String, Value>
Additional metadata about the change
Trait Implementations§
Source§impl Clone for ResourceUpdateNotification
impl Clone for ResourceUpdateNotification
Source§fn clone(&self) -> ResourceUpdateNotification
fn clone(&self) -> ResourceUpdateNotification
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 ResourceUpdateNotification
impl Debug for ResourceUpdateNotification
Source§impl<'de> Deserialize<'de> for ResourceUpdateNotification
impl<'de> Deserialize<'de> for ResourceUpdateNotification
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 ResourceUpdateNotification
impl RefUnwindSafe for ResourceUpdateNotification
impl Send for ResourceUpdateNotification
impl Sync for ResourceUpdateNotification
impl Unpin for ResourceUpdateNotification
impl UnwindSafe for ResourceUpdateNotification
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