pub enum GetBlockVerboseOneError {
Numeric(NumericError),
Hash(HexToArrayError),
Tx(FromHexError),
Bits(UnprefixedHexError),
ChainWork(UnprefixedHexError),
PreviousBlockHash(HexToArrayError),
NextBlockHash(HexToArrayError),
}
Expand description
Error when converting a GetBlockVerboseOne
type into the model type.
Variants§
Numeric(NumericError)
Conversion of numeric type to expected type failed.
Hash(HexToArrayError)
Conversion of the transaction hash
field failed.
Tx(FromHexError)
Conversion of the transaction hex
field failed.
Bits(UnprefixedHexError)
Conversion of the transaction bits
field failed.
ChainWork(UnprefixedHexError)
Conversion of the transaction chain_work
field failed.
PreviousBlockHash(HexToArrayError)
Conversion of the transaction previous_block_hash
field failed.
NextBlockHash(HexToArrayError)
Conversion of the transaction next_block_hash
field failed.
Trait Implementations§
Source§impl Debug for GetBlockVerboseOneError
impl Debug for GetBlockVerboseOneError
Source§impl Display for GetBlockVerboseOneError
impl Display for GetBlockVerboseOneError
Source§impl Error for GetBlockVerboseOneError
impl Error for GetBlockVerboseOneError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<NumericError> for GetBlockVerboseOneError
impl From<NumericError> for GetBlockVerboseOneError
Source§fn from(e: NumericError) -> Self
fn from(e: NumericError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GetBlockVerboseOneError
impl !RefUnwindSafe for GetBlockVerboseOneError
impl Send for GetBlockVerboseOneError
impl Sync for GetBlockVerboseOneError
impl Unpin for GetBlockVerboseOneError
impl !UnwindSafe for GetBlockVerboseOneError
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