Enum near_account_id::ParseErrorKind
source · [−]#[non_exhaustive]
pub enum ParseErrorKind {
TooLong,
TooShort,
RedundantSeparator,
InvalidChar,
}
Expand description
A list of errors that occur when parsing an invalid Account ID.
Also see Error kind precedence.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
TooLong
The Account ID is too long.
Returned if the AccountId
is longer than AccountId::MAX_LEN
.
TooShort
The Account ID is too short.
Returned if the AccountId
is shorter than AccountId::MIN_LEN
.
RedundantSeparator
The Account ID has a redundant separator.
This variant would be returned if the Account ID either begins with, ends with or has separators immediately following each other.
Cases: jane.
, angela__moss
, tyrell..wellick
InvalidChar
The Account ID contains an invalid character.
This variant would be returned if the Account ID contains an upper-case character, non-separating symbol or space.
Cases: ƒelicia.near
, user@app.com
, Emily.near
.
Trait Implementations
sourceimpl Clone for ParseErrorKind
impl Clone for ParseErrorKind
sourcefn clone(&self) -> ParseErrorKind
fn clone(&self) -> ParseErrorKind
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ParseErrorKind
impl Debug for ParseErrorKind
sourceimpl Display for ParseErrorKind
impl Display for ParseErrorKind
sourceimpl PartialEq<ParseErrorKind> for ParseErrorKind
impl PartialEq<ParseErrorKind> for ParseErrorKind
impl Eq for ParseErrorKind
impl StructuralEq for ParseErrorKind
impl StructuralPartialEq for ParseErrorKind
Auto Trait Implementations
impl RefUnwindSafe for ParseErrorKind
impl Send for ParseErrorKind
impl Sync for ParseErrorKind
impl Unpin for ParseErrorKind
impl UnwindSafe for ParseErrorKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more