pub enum GetTransactionError {
Numeric(NumericError),
Amount(ParseAmountError),
Fee(ParseAmountError),
BlockHash(HexToArrayError),
Txid(HexToArrayError),
Tx(FromHexError),
Details(GetTransactionDetailError),
}
Expand description
Error when converting a GetTransaction
type into the model type.
Variants§
Numeric(NumericError)
Conversion of numeric type to expected type failed.
Amount(ParseAmountError)
Conversion of the amount
field failed.
Fee(ParseAmountError)
Conversion of the fee
field failed.
BlockHash(HexToArrayError)
Conversion of the block_hash
field failed.
Txid(HexToArrayError)
Conversion of the txid
field failed.
Tx(FromHexError)
Conversion of the transaction hex
field failed.
Details(GetTransactionDetailError)
Conversion of the details
field failed.
Trait Implementations§
Source§impl Debug for GetTransactionError
impl Debug for GetTransactionError
Source§impl Display for GetTransactionError
impl Display for GetTransactionError
Source§impl Error for GetTransactionError
impl Error for GetTransactionError
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 GetTransactionError
impl From<NumericError> for GetTransactionError
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 GetTransactionError
impl !RefUnwindSafe for GetTransactionError
impl Send for GetTransactionError
impl Sync for GetTransactionError
impl Unpin for GetTransactionError
impl !UnwindSafe for GetTransactionError
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