Enum jsonrpc_core::types::response::Output [−][src]
Expand description
Represents output - failure or success
Variants
Success(Success)
Success
Failure(Failure)
Failure
Implementations
Creates new output given Result
, Id
and Version
.
Creates new failure output indicating malformed request.
Trait Implementations
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
Convert into a result. Will be Ok
if it is a Success
and Err
if Failure
.
Auto Trait Implementations
impl RefUnwindSafe for Output
impl UnwindSafe for Output
Blanket Implementations
Mutably borrows from an owned value. Read more