pub enum InvalidAsset {
MissingSpace,
MissingDecimal,
ParseAmount {
source: ParseIntError,
},
AmountOverflow {
amount: String,
},
AmountOutOfRange,
InvalidSymbol {
source: InvalidSymbol,
},
}Variants§
MissingSpace
MissingDecimal
ParseAmount
Fields
§
source: ParseIntErrorAmountOverflow
AmountOutOfRange
InvalidSymbol
Fields
§
source: InvalidSymbolTrait Implementations§
Source§impl Debug for InvalidAsset
impl Debug for InvalidAsset
Source§impl Display for InvalidAsset
impl Display for InvalidAsset
Source§impl Error for InvalidAsset
impl Error for InvalidAsset
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
Source§impl ErrorCompat for InvalidAsset
impl ErrorCompat for InvalidAsset
Source§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
and continuing with recursive calls to
Error::source. Read moreSource§impl From<InvalidAsset> for SerializeError
impl From<InvalidAsset> for SerializeError
Source§fn from(value: InvalidAsset) -> SerializeError
fn from(value: InvalidAsset) -> SerializeError
Converts to this type from the input type.
Source§impl From<InvalidSymbol> for InvalidAsset
impl From<InvalidSymbol> for InvalidAsset
Source§fn from(value: InvalidSymbol) -> InvalidAsset
fn from(value: InvalidSymbol) -> InvalidAsset
Converts to this type from the input type.
Source§impl From<ParseIntError> for InvalidAsset
impl From<ParseIntError> for InvalidAsset
Source§fn from(value: ParseIntError) -> InvalidAsset
fn from(value: ParseIntError) -> InvalidAsset
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InvalidAsset
impl RefUnwindSafe for InvalidAsset
impl Send for InvalidAsset
impl Sync for InvalidAsset
impl Unpin for InvalidAsset
impl UnsafeUnpin for InvalidAsset
impl UnwindSafe for InvalidAsset
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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