Enum b3_helper_lib::TokenAmountError
source · pub enum TokenAmountError {
Overflow,
Underflow,
PrecisionLoss,
DivisionByZero,
ToManyDecimals,
DecimalsMismatch,
InvalidAmount(String),
DifferentDecimals(u8, u8),
}
Variants§
Overflow
Underflow
PrecisionLoss
DivisionByZero
ToManyDecimals
DecimalsMismatch
InvalidAmount(String)
DifferentDecimals(u8, u8)
Trait Implementations§
source§impl CandidType for TokenAmountError
impl CandidType for TokenAmountError
source§impl Clone for TokenAmountError
impl Clone for TokenAmountError
source§fn clone(&self) -> TokenAmountError
fn clone(&self) -> TokenAmountError
Returns a copy 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 TokenAmountError
impl Debug for TokenAmountError
source§impl<'de> Deserialize<'de> for TokenAmountError
impl<'de> Deserialize<'de> for TokenAmountError
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 TokenAmountError
impl Display for TokenAmountError
source§impl PartialEq<TokenAmountError> for TokenAmountError
impl PartialEq<TokenAmountError> for TokenAmountError
source§fn eq(&self, other: &TokenAmountError) -> bool
fn eq(&self, other: &TokenAmountError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TokenAmountError
Auto Trait Implementations§
impl RefUnwindSafe for TokenAmountError
impl Send for TokenAmountError
impl Sync for TokenAmountError
impl Unpin for TokenAmountError
impl UnwindSafe for TokenAmountError
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