Struct near_parameters::cost::StorageUsageConfig
source · pub struct StorageUsageConfig {
pub storage_amount_per_byte: Balance,
pub num_bytes_account: u64,
pub num_extra_bytes_record: u64,
}
Expand description
Describes cost of storage per block
Fields§
§storage_amount_per_byte: Balance
Amount of yN per byte required to have on the account. See https://nomicon.io/Economics/README.html#state-stake for details.
num_bytes_account: u64
Number of bytes for an account record, including rounding up for account id.
num_extra_bytes_record: u64
Additional number of bytes for a k/v record
Implementations§
Trait Implementations§
source§impl Clone for StorageUsageConfig
impl Clone for StorageUsageConfig
source§fn clone(&self) -> StorageUsageConfig
fn clone(&self) -> StorageUsageConfig
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 StorageUsageConfig
impl Debug for StorageUsageConfig
source§impl Hash for StorageUsageConfig
impl Hash for StorageUsageConfig
source§impl PartialEq for StorageUsageConfig
impl PartialEq for StorageUsageConfig
source§fn eq(&self, other: &StorageUsageConfig) -> bool
fn eq(&self, other: &StorageUsageConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for StorageUsageConfig
impl StructuralEq for StorageUsageConfig
impl StructuralPartialEq for StorageUsageConfig
Auto Trait Implementations§
impl RefUnwindSafe for StorageUsageConfig
impl Send for StorageUsageConfig
impl Sync for StorageUsageConfig
impl Unpin for StorageUsageConfig
impl UnwindSafe for StorageUsageConfig
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.