Enum near_account_id::AccountType
source · pub enum AccountType {
NamedAccount,
NearImplicitAccount,
EthImplicitAccount,
}
Expand description
Enum representing possible types of accounts.
This enum
is returned by the get_account_type
method on AccountIdRef
.
See its documentation for more.
Variants§
NamedAccount
Any valid account, that is neither NEAR-implicit nor ETH-implicit.
NearImplicitAccount
An account with 64 characters long hexadecimal address.
EthImplicitAccount
An account which address starts with ‘0x’, followed by 40 hex characters.
Implementations§
source§impl AccountType
impl AccountType
pub fn is_implicit(&self) -> bool
Trait Implementations§
source§impl PartialEq for AccountType
impl PartialEq for AccountType
source§fn eq(&self, other: &AccountType) -> bool
fn eq(&self, other: &AccountType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AccountType
Auto Trait Implementations§
impl RefUnwindSafe for AccountType
impl Send for AccountType
impl Sync for AccountType
impl Unpin for AccountType
impl UnwindSafe for AccountType
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