pub struct WalletErrorObject {Show 16 fields
pub is_error: bool,
pub name: String,
pub message: String,
pub code: Option<u8>,
pub parameter: Option<String>,
pub total_satoshis_needed: Option<i64>,
pub more_satoshis_needed: Option<i64>,
pub review_action_results: Option<Vec<ReviewActionResult>>,
pub send_with_results: Option<Vec<SendWithResult>>,
pub txid: Option<String>,
pub tx: Option<Vec<u8>>,
pub no_send_change: Option<Vec<OutpointString>>,
pub block_hash: Option<String>,
pub block_height: Option<u32>,
pub merkle_root: Option<String>,
pub key: Option<String>,
}Expand description
JSON wire format for wallet errors, matching the TypeScript WalletError.toJson() output.
Fields§
§is_error: boolAlways true to indicate an error response.
name: StringThe WERR error code string (e.g., “WERR_INTERNAL”).
message: StringHuman-readable error message.
code: Option<u8>Optional numeric error code.
parameter: Option<String>The parameter name, if the error relates to a specific parameter.
total_satoshis_needed: Option<i64>Total satoshis needed, present only for insufficient funds errors.
more_satoshis_needed: Option<i64>Additional satoshis needed, present only for insufficient funds errors.
review_action_results: Option<Vec<ReviewActionResult>>Review action results for WERR_REVIEW_ACTIONS.
send_with_results: Option<Vec<SendWithResult>>Send-with results for WERR_REVIEW_ACTIONS.
txid: Option<String>Transaction ID for WERR_REVIEW_ACTIONS and WERR_INVALID_MERKLE_ROOT.
tx: Option<Vec<u8>>Raw transaction bytes for WERR_REVIEW_ACTIONS.
no_send_change: Option<Vec<OutpointString>>No-send change outpoints for WERR_REVIEW_ACTIONS.
block_hash: Option<String>Block hash for WERR_INVALID_MERKLE_ROOT.
block_height: Option<u32>Block height for WERR_INVALID_MERKLE_ROOT.
merkle_root: Option<String>Merkle root for WERR_INVALID_MERKLE_ROOT.
key: Option<String>The invalid key value for WERR_INVALID_PUBLIC_KEY.
Trait Implementations§
Source§impl Debug for WalletErrorObject
impl Debug for WalletErrorObject
Source§impl<'de> Deserialize<'de> for WalletErrorObject
impl<'de> Deserialize<'de> for WalletErrorObject
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for WalletErrorObject
impl RefUnwindSafe for WalletErrorObject
impl Send for WalletErrorObject
impl Sync for WalletErrorObject
impl Unpin for WalletErrorObject
impl UnsafeUnpin for WalletErrorObject
impl UnwindSafe for WalletErrorObject
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more