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§
Source§impl TryFrom<Vec<u8>> for JsonResponse
Interprets bytes from an HTTP response body as a JSON value.
impl TryFrom<Vec<u8>> for JsonResponse
Interprets bytes from an HTTP response body as a JSON value.
Source§impl TryInto<(BlockHash, Option<u32>)> for JsonResponse
Converts a JSON value into the best block hash and optional height.
impl TryInto<(BlockHash, Option<u32>)> for JsonResponse
Converts a JSON value into the best block hash and optional height.
Source§impl TryInto<Block> for JsonResponse
Converts a JSON value into a block. Assumes the block is hex-encoded in a JSON string.
impl TryInto<Block> for JsonResponse
Converts a JSON value into a block. Assumes the block is hex-encoded in a JSON string.
Source§impl TryInto<BlockHash> for JsonResponse
impl TryInto<BlockHash> for JsonResponse
Source§impl TryInto<BlockHeaderData> for JsonResponse
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.
impl TryInto<BlockHeaderData> for JsonResponse
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.
Source§impl TryInto<Transaction> for JsonResponse
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
impl TryInto<Transaction> for JsonResponse
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
Source§impl TryInto<Txid> for JsonResponse
impl TryInto<Txid> for JsonResponse
Auto Trait Implementations§
impl Freeze for JsonResponse
impl RefUnwindSafe for JsonResponse
impl Send for JsonResponse
impl Sync for JsonResponse
impl Unpin for JsonResponse
impl UnwindSafe for JsonResponse
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more