pub struct JsonRpcResponse<R = WithMeta<Map<String, Value>, Map<String, Value>>> {
pub jsonrpc: JsonRpcVersion2_0,
pub id: NumberOrString,
pub result: R,
}
Fields§
§jsonrpc: JsonRpcVersion2_0
§id: NumberOrString
§result: R
Trait Implementations§
Source§impl<R> Clone for JsonRpcResponse<R>where
R: Clone,
impl<R> Clone for JsonRpcResponse<R>where
R: Clone,
Source§fn clone(&self) -> JsonRpcResponse<R>
fn clone(&self) -> JsonRpcResponse<R>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<R> Debug for JsonRpcResponse<R>where
R: Debug,
impl<R> Debug for JsonRpcResponse<R>where
R: Debug,
Source§impl<'de, R> Deserialize<'de> for JsonRpcResponse<R>where
R: Deserialize<'de>,
impl<'de, R> Deserialize<'de> for JsonRpcResponse<R>where
R: Deserialize<'de>,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<JsonRpcResponse<R>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<JsonRpcResponse<R>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<R> PartialEq for JsonRpcResponse<R>where
R: PartialEq,
impl<R> PartialEq for JsonRpcResponse<R>where
R: PartialEq,
Source§impl<R> Serialize for JsonRpcResponse<R>where
R: Serialize,
impl<R> Serialize for JsonRpcResponse<R>where
R: Serialize,
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
impl<R> StructuralPartialEq for JsonRpcResponse<R>
Auto Trait Implementations§
impl<R> Freeze for JsonRpcResponse<R>where
R: Freeze,
impl<R> RefUnwindSafe for JsonRpcResponse<R>where
R: RefUnwindSafe,
impl<R> Send for JsonRpcResponse<R>where
R: Send,
impl<R> Sync for JsonRpcResponse<R>where
R: Sync,
impl<R> Unpin for JsonRpcResponse<R>where
R: Unpin,
impl<R> UnwindSafe for JsonRpcResponse<R>where
R: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more