pub struct JSONRPCSuccessResponse {
pub jsonrpc: String,
pub result: Value,
pub id: Option<JSONRPCId>,
}Expand description
Represents a successful JSON-RPC 2.0 Response object.
Fields§
§jsonrpc: StringThe version of the JSON-RPC protocol. MUST be exactly “2.0”.
result: ValueThe value of this member is determined by the method invoked on the Server.
id: Option<JSONRPCId>The identifier established by the client.
Trait Implementations§
Source§impl Clone for JSONRPCSuccessResponse
impl Clone for JSONRPCSuccessResponse
Source§fn clone(&self) -> JSONRPCSuccessResponse
fn clone(&self) -> JSONRPCSuccessResponse
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 Debug for JSONRPCSuccessResponse
impl Debug for JSONRPCSuccessResponse
Source§impl<'de> Deserialize<'de> for JSONRPCSuccessResponse
impl<'de> Deserialize<'de> for JSONRPCSuccessResponse
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
Auto Trait Implementations§
impl Freeze for JSONRPCSuccessResponse
impl RefUnwindSafe for JSONRPCSuccessResponse
impl Send for JSONRPCSuccessResponse
impl Sync for JSONRPCSuccessResponse
impl Unpin for JSONRPCSuccessResponse
impl UnwindSafe for JSONRPCSuccessResponse
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