pub struct Outgoing {
pub jsonrpc: &'static str,
pub id: Option<Value>,
pub result: Option<Value>,
pub error: Option<ErrorObject>,
pub method: Option<String>,
pub params: Option<Value>,
}Expand description
A reply, successful or not.
Fields§
§jsonrpc: &'static strAlways "2.0".
id: Option<Value>Echoes the request’s id; absent on a notification.
result: Option<Value>The answer, when the call succeeded.
error: Option<ErrorObject>Why it did not, when it failed.
method: Option<String>Set only on a server-initiated notification, which carries a method and no id.
params: Option<Value>The notification’s payload, alongside method.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Outgoing
impl RefUnwindSafe for Outgoing
impl Send for Outgoing
impl Sync for Outgoing
impl Unpin for Outgoing
impl UnsafeUnpin for Outgoing
impl UnwindSafe for Outgoing
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