pub struct NotificationResult {
pub result: Option<Value>,
pub subscription: SubscriptionID,
}
Expand description
NotificationResult represents the result of a subscription notification. It includes the result and the subscription ID that triggered the notification.
Fields§
§result: Option<Value>
Optional data about the notification.
subscription: SubscriptionID
ID of the subscription that triggered the notification.
Trait Implementations§
Source§impl Debug for NotificationResult
impl Debug for NotificationResult
Source§impl<'de> Deserialize<'de> for NotificationResult
impl<'de> Deserialize<'de> for NotificationResult
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
Auto Trait Implementations§
impl Freeze for NotificationResult
impl RefUnwindSafe for NotificationResult
impl Send for NotificationResult
impl Sync for NotificationResult
impl Unpin for NotificationResult
impl UnwindSafe for NotificationResult
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