Enum diem_assets_proof::ResultWrapper[][src]

pub enum ResultWrapper<T> {
    Result(T),
    Error(String),
}
Expand description

A helper type for serializing Result<T> with serde-json.

Variants

Result(T)

Tuple Fields of Result

0: T
Error(String)

Tuple Fields of Error

0: String

Implementations

Trait Implementations

Formats the value using the given formatter. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

Generates a hash used only for tests.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.