Enum jsonrpc_core::types::response::Output
[−]
[src]
pub enum Output { Success(Success), Failure(Failure), }
Represents output - failure or success
Variants
Success(Success)
Success
Failure(Failure)
Failure
Methods
impl Output
[src]
fn from(result: CoreResult<Value>, id: Id, jsonrpc: Option<Version>) -> Self
[src]
Creates new output given Result
, Id
and Version
.
fn invalid_request(id: Id, jsonrpc: Option<Version>) -> Self
[src]
Creates new failure output indicating malformed request.
fn version(&self) -> Option<Version>
[src]
Get the jsonrpc protocol version.
fn id(&self) -> &Id
[src]
Get the correlation id.
Trait Implementations
impl Debug for Output
[src]
impl PartialEq for Output
[src]
fn eq(&self, __arg_0: &Output) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Output) -> bool
[src]
This method tests for !=
.
impl Clone for Output
[src]
fn clone(&self) -> Output
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a> Deserialize<'a> for Output
[src]
fn deserialize<D>(deserializer: D) -> Result<Output, D::Error> where
D: Deserializer<'a>,
[src]
D: Deserializer<'a>,
Deserialize this value from the given Serde deserializer. Read more