Enum near_token::NearTokenError
source · pub enum NearTokenError {
InvalidTokensAmount(DecimalNumberParsingError),
InvalidTokenUnit(String),
}
Variants§
InvalidTokensAmount(DecimalNumberParsingError)
InvalidTokenUnit(String)
Trait Implementations§
source§impl Clone for NearTokenError
impl Clone for NearTokenError
source§fn clone(&self) -> NearTokenError
fn clone(&self) -> NearTokenError
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 NearTokenError
impl Debug for NearTokenError
source§impl Display for NearTokenError
impl Display for NearTokenError
source§impl Error for NearTokenError
impl Error for NearTokenError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 NearTokenError
impl PartialEq for NearTokenError
source§fn eq(&self, other: &NearTokenError) -> bool
fn eq(&self, other: &NearTokenError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for NearTokenError
impl StructuralEq for NearTokenError
impl StructuralPartialEq for NearTokenError
Auto Trait Implementations§
impl RefUnwindSafe for NearTokenError
impl Send for NearTokenError
impl Sync for NearTokenError
impl Unpin for NearTokenError
impl UnwindSafe for NearTokenError
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