pub struct SubscriptionNotificationParams<T = Value> {
pub subscription: Id,
pub result: T,
}
Expand description
Parameters of the subscription notification.
Fields§
§subscription: Id
Subscription id, as communicated during the subscription.
result: T
Actual data that the server wants to communicate to the client.
Implementations§
Source§impl<T: Serialize + DeserializeOwned> SubscriptionNotificationParams<T>
impl<T: Serialize + DeserializeOwned> SubscriptionNotificationParams<T>
Trait Implementations§
Source§impl<T: Clone> Clone for SubscriptionNotificationParams<T>
impl<T: Clone> Clone for SubscriptionNotificationParams<T>
Source§fn clone(&self) -> SubscriptionNotificationParams<T>
fn clone(&self) -> SubscriptionNotificationParams<T>
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<T: Debug> Debug for SubscriptionNotificationParams<T>
impl<T: Debug> Debug for SubscriptionNotificationParams<T>
Source§impl<'de, T> Deserialize<'de> for SubscriptionNotificationParams<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for SubscriptionNotificationParams<T>where
T: Deserialize<'de>,
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<T: PartialEq> PartialEq for SubscriptionNotificationParams<T>
impl<T: PartialEq> PartialEq for SubscriptionNotificationParams<T>
Source§fn eq(&self, other: &SubscriptionNotificationParams<T>) -> bool
fn eq(&self, other: &SubscriptionNotificationParams<T>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl<T> Serialize for SubscriptionNotificationParams<T>where
T: Serialize,
impl<T> Serialize for SubscriptionNotificationParams<T>where
T: Serialize,
impl<T: Eq> Eq for SubscriptionNotificationParams<T>
impl<T> StructuralPartialEq for SubscriptionNotificationParams<T>
Auto Trait Implementations§
impl<T> Freeze for SubscriptionNotificationParams<T>where
T: Freeze,
impl<T> RefUnwindSafe for SubscriptionNotificationParams<T>where
T: RefUnwindSafe,
impl<T> Send for SubscriptionNotificationParams<T>where
T: Send,
impl<T> Sync for SubscriptionNotificationParams<T>where
T: Sync,
impl<T> Unpin for SubscriptionNotificationParams<T>where
T: Unpin,
impl<T> UnwindSafe for SubscriptionNotificationParams<T>where
T: 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