pub struct RawWireMessage {
pub jsonrpc: JsonRpcVersion,
pub id: Option<String>,
pub method: Option<String>,
pub params: Option<Value>,
pub result: Option<Value>,
pub error: Option<JsonRpcError>,
}Expand description
A raw, untyped wire message for low-level parsing.
All fields are optional so that any valid JSON-RPC line can be parsed without knowing the concrete schema upfront.
Fields§
§jsonrpc: JsonRpcVersionJSON-RPC version.
id: Option<String>Request/response id, if present.
method: Option<String>Method name for requests/notifications.
params: Option<Value>Parameters for requests/notifications.
result: Option<Value>Result for success responses.
error: Option<JsonRpcError>Error for error responses.
Trait Implementations§
Source§impl Clone for RawWireMessage
impl Clone for RawWireMessage
Source§fn clone(&self) -> RawWireMessage
fn clone(&self) -> RawWireMessage
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 Debug for RawWireMessage
impl Debug for RawWireMessage
Source§impl<'de> Deserialize<'de> for RawWireMessage
impl<'de> Deserialize<'de> for RawWireMessage
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 PartialEq for RawWireMessage
impl PartialEq for RawWireMessage
Source§fn eq(&self, other: &RawWireMessage) -> bool
fn eq(&self, other: &RawWireMessage) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RawWireMessage
impl Serialize for RawWireMessage
impl Eq for RawWireMessage
impl StructuralPartialEq for RawWireMessage
Auto Trait Implementations§
impl Freeze for RawWireMessage
impl RefUnwindSafe for RawWireMessage
impl Send for RawWireMessage
impl Sync for RawWireMessage
impl Unpin for RawWireMessage
impl UnsafeUnpin for RawWireMessage
impl UnwindSafe for RawWireMessage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.