pub struct PaymentProblem { /* private fields */ }Expand description
Structured payment-problem record used at verify/settle boundaries.
Not itself serializable.
Implementations§
Source§impl PaymentProblem
impl PaymentProblem
Sourcepub const fn new(reason: ErrorReason, details: String) -> Self
pub const fn new(reason: ErrorReason, details: String) -> Self
Creates a new problem record.
Sourcepub fn reason(&self) -> ErrorReason
pub fn reason(&self) -> ErrorReason
Wire-level reason code.
Sourcepub const fn reason_ref(&self) -> &ErrorReason
pub const fn reason_ref(&self) -> &ErrorReason
Borrowed wire-level reason code.
Trait Implementations§
Source§impl Clone for PaymentProblem
impl Clone for PaymentProblem
Source§fn clone(&self) -> PaymentProblem
fn clone(&self) -> PaymentProblem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PaymentProblem
impl Debug for PaymentProblem
impl Eq for PaymentProblem
Source§impl PartialEq for PaymentProblem
impl PartialEq for PaymentProblem
impl StructuralPartialEq for PaymentProblem
Auto Trait Implementations§
impl Freeze for PaymentProblem
impl RefUnwindSafe for PaymentProblem
impl Send for PaymentProblem
impl Sync for PaymentProblem
impl Unpin for PaymentProblem
impl UnsafeUnpin 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