pub struct ServerJsonRpcResponse {
pub jsonrpc: String,
pub result: Option<Value>,
pub error: Option<Value>,
pub id: Value,
}
Expand description
JSON-RPC response structure for server-initiated communication
Fields§
§jsonrpc: String
JSON-RPC version
result: Option<Value>
Response result
error: Option<Value>
Response error
id: Value
Request ID
Trait Implementations§
Source§impl Clone for ServerJsonRpcResponse
impl Clone for ServerJsonRpcResponse
Source§fn clone(&self) -> ServerJsonRpcResponse
fn clone(&self) -> ServerJsonRpcResponse
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 ServerJsonRpcResponse
impl Debug for ServerJsonRpcResponse
Source§impl<'de> Deserialize<'de> for ServerJsonRpcResponse
impl<'de> Deserialize<'de> for ServerJsonRpcResponse
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 ServerJsonRpcResponse
impl RefUnwindSafe for ServerJsonRpcResponse
impl Send for ServerJsonRpcResponse
impl Sync for ServerJsonRpcResponse
impl Unpin for ServerJsonRpcResponse
impl UnwindSafe for ServerJsonRpcResponse
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