pub struct PromptPayError { /* private fields */ }Expand description
Custom error type for PromptPay QR generation failures.
This error is used throughout the library to indicate issues such as:
- Empty merchant ID
- Invalid payload
- QR code generation failure
Implementations§
Trait Implementations§
Source§impl Debug for PromptPayError
impl Debug for PromptPayError
Source§impl Display for PromptPayError
impl Display for PromptPayError
Source§impl Error for PromptPayError
impl Error for PromptPayError
Source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
fn description(&self) -> &str
Returns a short description of the error (legacy method).
Note: Prefer using Display implementation for user-facing messages.
1.30.0 · 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
Auto Trait Implementations§
impl Freeze for PromptPayError
impl RefUnwindSafe for PromptPayError
impl Send for PromptPayError
impl Sync for PromptPayError
impl Unpin for PromptPayError
impl UnsafeUnpin for PromptPayError
impl UnwindSafe for PromptPayError
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