pub struct JsonRpcNotificationResultParams {
pub result: Option<Value>,
pub error: Option<JsonRpcResponseError>,
}
Expand description
Parameters used to return a result and error for a notification.
Fields§
§result: Option<Value>
§error: Option<JsonRpcResponseError>
Implementations§
Source§impl JsonRpcNotificationResultParams
impl JsonRpcNotificationResultParams
pub fn new( result: Result<Value, ProtocolError>, ) -> JsonRpcNotificationResultParams
Trait Implementations§
Source§impl Clone for JsonRpcNotificationResultParams
impl Clone for JsonRpcNotificationResultParams
Source§fn clone(&self) -> JsonRpcNotificationResultParams
fn clone(&self) -> JsonRpcNotificationResultParams
Returns a copy 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<'de> Deserialize<'de> for JsonRpcNotificationResultParams
impl<'de> Deserialize<'de> for JsonRpcNotificationResultParams
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<JsonRpcNotificationResultParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<JsonRpcNotificationResultParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for JsonRpcNotificationResultParams
impl Serialize for JsonRpcNotificationResultParams
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 JsonRpcNotificationResultParams
impl RefUnwindSafe for JsonRpcNotificationResultParams
impl Send for JsonRpcNotificationResultParams
impl Sync for JsonRpcNotificationResultParams
impl Unpin for JsonRpcNotificationResultParams
impl UnwindSafe for JsonRpcNotificationResultParams
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