pub struct JsonResponse(pub Value);
Available on crate features rest-client or rpc-client only.
Expand description

An HTTP response body in JSON format.

Tuple Fields

0: Value

Trait Implementations

Interprets bytes from an HTTP response body as a JSON value.

The type returned in the event of a conversion error.

Performs the conversion.

Converts a JSON value into the best block hash and optional height.

The type returned in the event of a conversion error.

Performs the conversion.

Converts a JSON value into a block. Assumes the block is hex-encoded in a JSON string.

The type returned in the event of a conversion error.

Performs the conversion.

Converts a JSON value into block header data. The JSON value may be an object representing a block header or an array of such objects. In the latter case, the first object is converted.

The type returned in the event of a conversion error.

Performs the conversion.

Converts a JSON value into a transaction. WATCH OUT! this cannot be used for zero-input transactions (e.g. createrawtransaction). See https://github.com/rust-bitcoin/rust-bitcoincore-rpc/issues/197

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.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.