pub enum WithdrawalState {
Unconfirmed,
Confirmed,
Cancelled,
Completed,
Interrupted,
Rejected,
}Expand description
Withdrawal state enumeration
Represents the current state of a withdrawal request.
Variants§
Unconfirmed
Withdrawal is unconfirmed (awaiting email confirmation)
Confirmed
Withdrawal has been confirmed by user
Cancelled
Withdrawal has been cancelled
Completed
Withdrawal has been completed successfully
Interrupted
Withdrawal was interrupted
Rejected
Withdrawal was rejected
Implementations§
Source§impl WithdrawalState
impl WithdrawalState
Sourcepub fn is_terminal(&self) -> bool
pub fn is_terminal(&self) -> bool
Check if the withdrawal is in a terminal state
Sourcepub fn is_successful(&self) -> bool
pub fn is_successful(&self) -> bool
Check if the withdrawal was successful
Trait Implementations§
Source§impl Clone for WithdrawalState
impl Clone for WithdrawalState
Source§fn clone(&self) -> WithdrawalState
fn clone(&self) -> WithdrawalState
Returns a duplicate of the value. Read more
1.0.0 · 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 WithdrawalState
impl Debug for WithdrawalState
Source§impl Default for WithdrawalState
impl Default for WithdrawalState
Source§fn default() -> WithdrawalState
fn default() -> WithdrawalState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WithdrawalState
impl<'de> Deserialize<'de> for WithdrawalState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for WithdrawalState
impl Display for WithdrawalState
Source§impl Hash for WithdrawalState
impl Hash for WithdrawalState
Source§impl PartialEq for WithdrawalState
impl PartialEq for WithdrawalState
Source§impl Serialize for WithdrawalState
impl Serialize for WithdrawalState
impl Copy for WithdrawalState
impl Eq for WithdrawalState
impl StructuralPartialEq for WithdrawalState
Auto Trait Implementations§
impl Freeze for WithdrawalState
impl RefUnwindSafe for WithdrawalState
impl Send for WithdrawalState
impl Sync for WithdrawalState
impl Unpin for WithdrawalState
impl UnsafeUnpin for WithdrawalState
impl UnwindSafe for WithdrawalState
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