pub enum AccountError {
TextTooLong,
InvalidPrincipal(PrincipalError),
MissingChecksum,
InvalidChecksum,
InvalidSubaccount,
LeadingZeroesInSubaccount,
DefaultSubaccountShouldBeOmitted,
}Expand description
Failures admitting canonical account text. No input strings are retained.
Variants§
TextTooLong
Input exceeds the account grammar’s maximum length.
InvalidPrincipal(PrincipalError)
The owner is not a valid principal.
MissingChecksum
A non-default subaccount needs a seven-character checksum.
InvalidChecksum
The checksum differs from CRC32(owner || subaccount).
InvalidSubaccount
Subaccount contains non-hex characters or exceeds 64 hex digits.
LeadingZeroesInSubaccount
Canonical subaccount text must omit leading zeroes.
DefaultSubaccountShouldBeOmitted
Default subaccounts must be represented by the owner alone.
Trait Implementations§
Source§impl Clone for AccountError
impl Clone for AccountError
Source§impl Debug for AccountError
impl Debug for AccountError
Source§impl Display for AccountError
impl Display for AccountError
impl Eq for AccountError
Source§impl Error for AccountError
impl Error for AccountError
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 AccountError
impl PartialEq for AccountError
impl StructuralPartialEq for AccountError
Auto Trait Implementations§
impl Freeze for AccountError
impl RefUnwindSafe for AccountError
impl Send for AccountError
impl Sync for AccountError
impl Unpin for AccountError
impl UnsafeUnpin for AccountError
impl UnwindSafe for AccountError
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