pub struct AccountCreationConfigView {
pub min_allowed_top_level_account_length: u8,
pub registrar_account_id: AccountId,
}Expand description
The structure describes configuration for creation of new accounts.
JSON schema
{
"description": "The structure describes configuration for creation of new accounts.",
"type": "object",
"required": [
"min_allowed_top_level_account_length",
"registrar_account_id"
],
"properties": {
"min_allowed_top_level_account_length": {
"description": "The minimum length of the top-level account ID that is allowed to be created by any account.",
"type": "integer",
"format": "uint8",
"minimum": 0.0
},
"registrar_account_id": {
"description": "The account ID of the account registrar. This account ID allowed to create top-level\n accounts of any valid length.",
"allOf": [
{
"$ref": "#/components/schemas/AccountId"
}
]
}
}
}Fields§
§min_allowed_top_level_account_length: u8The minimum length of the top-level account ID that is allowed to be created by any account.
registrar_account_id: AccountIdThe 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 AccountCreationConfigView
impl Clone for AccountCreationConfigView
Source§fn clone(&self) -> AccountCreationConfigView
fn clone(&self) -> AccountCreationConfigView
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AccountCreationConfigView
impl Debug for AccountCreationConfigView
Source§impl<'de> Deserialize<'de> for AccountCreationConfigView
impl<'de> Deserialize<'de> for AccountCreationConfigView
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AccountCreationConfigView, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AccountCreationConfigView, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&AccountCreationConfigView> for AccountCreationConfigView
impl From<&AccountCreationConfigView> for AccountCreationConfigView
Source§fn from(value: &AccountCreationConfigView) -> AccountCreationConfigView
fn from(value: &AccountCreationConfigView) -> AccountCreationConfigView
Converts to this type from the input type.
Source§impl Serialize for AccountCreationConfigView
impl Serialize for AccountCreationConfigView
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for AccountCreationConfigView
impl RefUnwindSafe for AccountCreationConfigView
impl Send for AccountCreationConfigView
impl Sync for AccountCreationConfigView
impl Unpin for AccountCreationConfigView
impl UnwindSafe for AccountCreationConfigView
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