pub struct HttpNotificationPayload {
pub result: Option<Value>,
pub error: Option<SerializableProtocolError>,
}
Expand description
The JSON payload for a server-side event/notification.
Fields§
§result: Option<Value>
§error: Option<SerializableProtocolError>
Trait Implementations§
Source§impl Debug for HttpNotificationPayload
impl Debug for HttpNotificationPayload
Source§impl<'de> Deserialize<'de> for HttpNotificationPayload
impl<'de> Deserialize<'de> for HttpNotificationPayload
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<HttpNotificationPayload, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<HttpNotificationPayload, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<Result<Option<Value>, ProtocolError>> for HttpNotificationPayload
impl From<Result<Option<Value>, ProtocolError>> for HttpNotificationPayload
Source§fn from(result: Result<Option<Value>, ProtocolError>) -> HttpNotificationPayload
fn from(result: Result<Option<Value>, ProtocolError>) -> HttpNotificationPayload
Converts to this type from the input type.
Source§impl Into<Result<Value, ProtocolError>> for HttpNotificationPayload
impl Into<Result<Value, ProtocolError>> for HttpNotificationPayload
Source§impl Serialize for HttpNotificationPayload
impl Serialize for HttpNotificationPayload
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 HttpNotificationPayload
impl RefUnwindSafe for HttpNotificationPayload
impl Send for HttpNotificationPayload
impl Sync for HttpNotificationPayload
impl Unpin for HttpNotificationPayload
impl UnwindSafe for HttpNotificationPayload
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