Struct near_parameters::config::AccountCreationConfig
source · pub struct AccountCreationConfig {
pub min_allowed_top_level_account_length: u8,
pub registrar_account_id: AccountId,
}
Expand description
The structure describes configuration for creation of new accounts.
Fields§
§min_allowed_top_level_account_length: u8
The minimum length of the top-level account ID that is allowed to be created by any account.
registrar_account_id: AccountId
The account ID of the account registrar. This account ID allowed to create top-level accounts of any valid length.
Trait Implementations§
source§impl Clone for AccountCreationConfig
impl Clone for AccountCreationConfig
source§fn clone(&self) -> AccountCreationConfig
fn clone(&self) -> AccountCreationConfig
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 AccountCreationConfig
impl Debug for AccountCreationConfig
source§impl Default for AccountCreationConfig
impl Default for AccountCreationConfig
source§impl PartialEq for AccountCreationConfig
impl PartialEq for AccountCreationConfig
source§fn eq(&self, other: &AccountCreationConfig) -> bool
fn eq(&self, other: &AccountCreationConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for AccountCreationConfig
impl StructuralEq for AccountCreationConfig
impl StructuralPartialEq for AccountCreationConfig
Auto Trait Implementations§
impl RefUnwindSafe for AccountCreationConfig
impl Send for AccountCreationConfig
impl Sync for AccountCreationConfig
impl Unpin for AccountCreationConfig
impl UnwindSafe for AccountCreationConfig
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.