pub struct NotificationMetaObject {
pub subscription_id: Option<RequestId>,
pub extra: Map<String, Value>,
}Expand description
Extends MetaObject with additional notification-specific fields. All key naming rules from MetaObject apply.
Fields§
§subscription_id: Option<RequestId>Identifies the subscription stream a notification was delivered on. The
server MUST include this key on every notification delivered via a
SubscriptionsListenRequestsubscriptions/listen stream, so the
client can correlate the notification with the originating subscription.
The key is absent on notifications not delivered via a subscription
stream (e.g. progress notifications for an in-flight request), which is
why it is optional here.
The value is the JSON-RPC ID of the subscriptions/listen request that
opened the stream.
extra: Map<String, Value>Additional properties not described by the schema.
Trait Implementations§
Source§impl Clone for NotificationMetaObject
impl Clone for NotificationMetaObject
Source§impl Debug for NotificationMetaObject
impl Debug for NotificationMetaObject
Source§impl Default for NotificationMetaObject
impl Default for NotificationMetaObject
Source§impl<'de> Deserialize<'de> for NotificationMetaObject
impl<'de> Deserialize<'de> for NotificationMetaObject
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
Source§impl PartialEq for NotificationMetaObject
impl PartialEq for NotificationMetaObject
Source§impl Serialize for NotificationMetaObject
impl Serialize for NotificationMetaObject
impl StructuralPartialEq for NotificationMetaObject
Auto Trait Implementations§
impl Freeze for NotificationMetaObject
impl RefUnwindSafe for NotificationMetaObject
impl Send for NotificationMetaObject
impl Sync for NotificationMetaObject
impl Unpin for NotificationMetaObject
impl UnsafeUnpin for NotificationMetaObject
impl UnwindSafe for NotificationMetaObject
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