pub enum X402Error {
NoMatchingPaymentOption,
RequestNotCloneable,
ParseError(String),
SigningError(String),
JsonError(Error),
}Expand description
Errors that can occur during client-side payment processing.
Variants§
NoMatchingPaymentOption
No payment option matched the client’s capabilities.
RequestNotCloneable
The HTTP request body cannot be cloned (e.g., streaming).
ParseError(String)
Failed to parse the 402 response body.
SigningError(String)
Failed to sign the payment authorization.
JsonError(Error)
JSON serialization/deserialization error.
Trait Implementations§
Source§impl Error for X402Error
impl Error for X402Error
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()
Auto Trait Implementations§
impl Freeze for X402Error
impl !RefUnwindSafe for X402Error
impl Send for X402Error
impl Sync for X402Error
impl Unpin for X402Error
impl !UnwindSafe for X402Error
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