pub struct ResourceUpdatedParams {
pub uri: String,
pub title: Option<String>,
}Expand description
Payload of notifications/resources/updated — URI only, never a diff.
The notification is a wake-up, not the data: the reader re-reads the URI on
wake, so a burst of updates collapses into one read of the current state and
a missed notification costs freshness, not correctness.
Fields§
§uri: String§title: Option<String>Trait Implementations§
Source§impl Clone for ResourceUpdatedParams
impl Clone for ResourceUpdatedParams
Source§fn clone(&self) -> ResourceUpdatedParams
fn clone(&self) -> ResourceUpdatedParams
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 Debug for ResourceUpdatedParams
impl Debug for ResourceUpdatedParams
Source§impl<'de> Deserialize<'de> for ResourceUpdatedParams
impl<'de> Deserialize<'de> for ResourceUpdatedParams
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ResourceUpdatedParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ResourceUpdatedParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ResourceUpdatedParams
impl Serialize for ResourceUpdatedParams
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
Auto Trait Implementations§
impl Freeze for ResourceUpdatedParams
impl RefUnwindSafe for ResourceUpdatedParams
impl Send for ResourceUpdatedParams
impl Sync for ResourceUpdatedParams
impl Unpin for ResourceUpdatedParams
impl UnsafeUnpin for ResourceUpdatedParams
impl UnwindSafe for ResourceUpdatedParams
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