Enum jsonrpc_core::types::response::Output [] [src]

pub enum Output {
    Success(Success),
    Failure(Failure),
}

Represents output - failure or success

Variants

Success

Failure

Methods

impl Output
[src]

Creates new output given Result, Id and Version.

Creates new failure output indicating malformed request.

Trait Implementations

impl Debug for Output
[src]

Formats the value using the given formatter.

impl PartialEq for Output
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Clone for Output
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> Deserialize<'a> for Output
[src]

Deserialize this value from the given Serde deserializer. Read more

impl Serialize for Output
[src]

Serialize this value into the given Serde serializer. Read more