#[non_exhaustive]pub enum RefundRequestError {
EmptyPaymentId,
Amount(MoneyError),
}Expand description
A RefundRequest was built out of parts that do not make a valid refund.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
EmptyPaymentId
The payment identifier was empty.
Amount(MoneyError)
The amount was not one that can be refunded.
Trait Implementations§
Source§impl Clone for RefundRequestError
impl Clone for RefundRequestError
Source§fn clone(&self) -> RefundRequestError
fn clone(&self) -> RefundRequestError
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 RefundRequestError
impl Debug for RefundRequestError
Source§impl Display for RefundRequestError
impl Display for RefundRequestError
impl Eq for RefundRequestError
Source§impl Error for RefundRequestError
impl Error for RefundRequestError
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()
Source§impl From<MoneyError> for RefundRequestError
impl From<MoneyError> for RefundRequestError
Source§fn from(source: MoneyError) -> Self
fn from(source: MoneyError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RefundRequestError
impl PartialEq for RefundRequestError
impl StructuralPartialEq for RefundRequestError
Auto Trait Implementations§
impl Freeze for RefundRequestError
impl RefUnwindSafe for RefundRequestError
impl Send for RefundRequestError
impl Sync for RefundRequestError
impl Unpin for RefundRequestError
impl UnsafeUnpin for RefundRequestError
impl UnwindSafe for RefundRequestError
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