pub struct NotificationMeta {
pub subscription_id: Option<RequestId>,
}Expand description
Subscription meta (_meta) carried by messages delivered on a
subscriptions/listen stream.
Fields§
§subscription_id: Option<RequestId>Identifies the subscription stream a notification was delivered on: the
JSON-RPC id of the subscriptions/listen request that opened it.
Absent on notifications not delivered via a subscription stream.
Trait Implementations§
Source§impl Clone for NotificationMeta
impl Clone for NotificationMeta
Source§fn clone(&self) -> NotificationMeta
fn clone(&self) -> NotificationMeta
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 NotificationMeta
impl Debug for NotificationMeta
Source§impl Default for NotificationMeta
impl Default for NotificationMeta
Source§fn default() -> NotificationMeta
fn default() -> NotificationMeta
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NotificationMeta
impl<'de> Deserialize<'de> for NotificationMeta
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<NotificationMeta, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<NotificationMeta, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for NotificationMeta
impl Serialize for NotificationMeta
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 NotificationMeta
impl RefUnwindSafe for NotificationMeta
impl Send for NotificationMeta
impl Sync for NotificationMeta
impl Unpin for NotificationMeta
impl UnsafeUnpin for NotificationMeta
impl UnwindSafe for NotificationMeta
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