pub struct ResponseIntf {
pub jsonrpc: String,
pub result: Option<Value>,
pub error: Option<ErrorObject>,
pub id: Value,
}Expand description
A JSON-RPC 2.0 response where result is an arbitrary serializable value,
used when encoding a locally-produced (overridden) response.
Fields§
§jsonrpc: StringAlways "2.0".
result: Option<Value>The result value, omitted when None.
error: Option<ErrorObject>The error object, omitted when None.
id: ValueThe request id.
Trait Implementations§
Source§impl Clone for ResponseIntf
impl Clone for ResponseIntf
Source§fn clone(&self) -> ResponseIntf
fn clone(&self) -> ResponseIntf
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 ResponseIntf
impl Debug for ResponseIntf
Auto Trait Implementations§
impl Freeze for ResponseIntf
impl RefUnwindSafe for ResponseIntf
impl Send for ResponseIntf
impl Sync for ResponseIntf
impl Unpin for ResponseIntf
impl UnsafeUnpin for ResponseIntf
impl UnwindSafe for ResponseIntf
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