pub struct RawNotificationInner<I> {
pub sub_id: I,
pub payload: Value,
}Expand description
The raw notification received from the websocket server.
This keeps the payload as JSON so clients can decode it with the kind of the subscription that produced the notification.
Fields§
§sub_id: IThe subscription ID
payload: ValueThe raw notification payload
Trait Implementations§
Source§impl<I> Clone for RawNotificationInner<I>where
I: Clone,
impl<I> Clone for RawNotificationInner<I>where
I: Clone,
Source§fn clone(&self) -> RawNotificationInner<I>
fn clone(&self) -> RawNotificationInner<I>
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<I> Debug for RawNotificationInner<I>where
I: Debug,
impl<I> Debug for RawNotificationInner<I>where
I: Debug,
Source§impl<'de, I> Deserialize<'de> for RawNotificationInner<I>where
I: Serialize + DeserializeOwned,
impl<'de, I> Deserialize<'de> for RawNotificationInner<I>where
I: Serialize + DeserializeOwned,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RawNotificationInner<I>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RawNotificationInner<I>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<I> Serialize for RawNotificationInner<I>where
I: Serialize + DeserializeOwned,
impl<I> Serialize for RawNotificationInner<I>where
I: Serialize + DeserializeOwned,
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<I> Freeze for RawNotificationInner<I>where
I: Freeze,
impl<I> RefUnwindSafe for RawNotificationInner<I>where
I: RefUnwindSafe,
impl<I> Send for RawNotificationInner<I>where
I: Send,
impl<I> Sync for RawNotificationInner<I>where
I: Sync,
impl<I> Unpin for RawNotificationInner<I>where
I: Unpin,
impl<I> UnsafeUnpin for RawNotificationInner<I>where
I: UnsafeUnpin,
impl<I> UnwindSafe for RawNotificationInner<I>where
I: UnwindSafe,
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