pub struct PaymentProblem { /* private fields */ }Expand description
A structured payment error with reason code and details.
This type is used to return detailed error information to clients when a payment fails verification or settlement.
Implementations§
Source§impl PaymentProblem
impl PaymentProblem
Sourcepub fn new(reason: ErrorReason, details: String) -> Self
pub fn new(reason: ErrorReason, details: String) -> Self
Creates a new payment problem with the given reason and details.
Sourcepub fn reason(&self) -> ErrorReason
pub fn reason(&self) -> ErrorReason
Returns the error reason code.
Auto Trait Implementations§
impl Freeze for PaymentProblem
impl RefUnwindSafe for PaymentProblem
impl Send for PaymentProblem
impl Sync for PaymentProblem
impl Unpin for PaymentProblem
impl UnwindSafe for PaymentProblem
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