pub enum ApproveError {
BadFee {
expected_fee: Nat,
},
InsufficientFunds {
balance: Nat,
},
AllowanceChanged {
current_allowance: Nat,
},
Expired {
ledger_time: u64,
},
TooOld,
CreatedInFuture {
ledger_time: u64,
},
Duplicate {
duplicate_of: Nat,
},
TemporarilyUnavailable,
GenericError {
error_code: Nat,
message: String,
},
}Variants§
Trait Implementations§
Source§impl CandidType for ApproveError
impl CandidType for ApproveError
Source§impl Clone for ApproveError
impl Clone for ApproveError
Source§fn clone(&self) -> ApproveError
fn clone(&self) -> ApproveError
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 ApproveError
impl Debug for ApproveError
Source§impl<'de> Deserialize<'de> for ApproveError
impl<'de> Deserialize<'de> for ApproveError
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 ApproveError
impl Display for ApproveError
Source§impl Error for ApproveError
impl Error for ApproveError
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
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 PartialEq for ApproveError
impl PartialEq for ApproveError
impl Eq for ApproveError
impl StructuralPartialEq for ApproveError
Auto Trait Implementations§
impl Freeze for ApproveError
impl RefUnwindSafe for ApproveError
impl Send for ApproveError
impl Sync for ApproveError
impl Unpin for ApproveError
impl UnwindSafe for ApproveError
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