pub struct StorageUsageConfig {
pub num_bytes_account: u64,
pub num_extra_bytes_record: u64,
}Expand description
Describes cost of storage per block
Fields§
§num_bytes_account: u64Number of bytes for an account record, including rounding up for account id.
num_extra_bytes_record: u64Additional number of bytes for a k/v record
Trait Implementations§
Source§impl Clone for StorageUsageConfig
impl Clone for StorageUsageConfig
Source§fn clone(&self) -> StorageUsageConfig
fn clone(&self) -> StorageUsageConfig
Returns a duplicate 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<'de> Deserialize<'de> for StorageUsageConfig
impl<'de> Deserialize<'de> for StorageUsageConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for StorageUsageConfig
impl Hash for StorageUsageConfig
Source§impl PartialEq for StorageUsageConfig
impl PartialEq for StorageUsageConfig
Source§impl Serialize for StorageUsageConfig
impl Serialize for StorageUsageConfig
impl Eq for StorageUsageConfig
impl StructuralPartialEq for StorageUsageConfig
Auto Trait Implementations§
impl Freeze for StorageUsageConfig
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