pub struct JsonRpcResponse<R = JsonObject> {
pub jsonrpc: JsonRpcVersion2_0,
pub id: RequestId,
pub result: R,
}Fields§
§jsonrpc: JsonRpcVersion2_0§id: RequestId§result: RTrait Implementations§
Source§impl<R: Clone> Clone for JsonRpcResponse<R>
impl<R: Clone> Clone for JsonRpcResponse<R>
Source§fn clone(&self) -> JsonRpcResponse<R>
fn clone(&self) -> JsonRpcResponse<R>
Returns a duplicate 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<R: Debug> Debug for JsonRpcResponse<R>
impl<R: Debug> Debug for JsonRpcResponse<R>
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<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<R> JsonSchema for JsonRpcResponse<R>where
R: JsonSchema,
impl<R> JsonSchema for JsonRpcResponse<R>where
R: JsonSchema,
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl<R: PartialEq> PartialEq for JsonRpcResponse<R>
impl<R: PartialEq> PartialEq for JsonRpcResponse<R>
Source§impl<R> Serialize for JsonRpcResponse<R>where
R: Serialize,
impl<R> Serialize for JsonRpcResponse<R>where
R: Serialize,
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> UnsafeUnpin for JsonRpcResponse<R>where
R: UnsafeUnpin,
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