#[non_exhaustive]pub enum EventKind {
Authorized,
Captured,
Refunded,
Failed,
Canceled,
Other(Box<str>),
}Expand description
What a delivery says happened.
Other is not an error and must never become one. A provider adding an
event type is normal, and a handler that answers an error for one it does
not know drives the provider into a redelivery loop that can run for days
— for something nobody wanted in the first place.
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.
Authorized
Funds are held and not taken.
Captured
Funds are taken.
Refunded
Money has gone back.
Failed
The payment was refused, and will not proceed.
Canceled
The payment was withdrawn before it completed.
Other(Box<str>)
Something else, named as the provider named it.
Trait Implementations§
impl Eq for EventKind
impl StructuralPartialEq for EventKind
Auto Trait Implementations§
impl Freeze for EventKind
impl RefUnwindSafe for EventKind
impl Send for EventKind
impl Sync for EventKind
impl Unpin for EventKind
impl UnsafeUnpin for EventKind
impl UnwindSafe for EventKind
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