pub struct StorageCost {
pub depth: u8,
pub amount_per_chunk: BigInt,
pub total_cost: BigInt,
pub blocks: u64,
}Expand description
Storage-cost preview returned by get_storage_cost.
Fields§
§depth: u8Stamp depth covering size.
amount_per_chunk: BigIntPer-block amount (PLUR) needed for duration.
total_cost: BigIntTotal cost: 2^depth * amount_per_chunk (PLUR).
blocks: u64Duration in blocks (duration / network.block_time).
Trait Implementations§
Source§impl Clone for StorageCost
impl Clone for StorageCost
Source§fn clone(&self) -> StorageCost
fn clone(&self) -> StorageCost
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StorageCost
impl Debug for StorageCost
Source§impl PartialEq for StorageCost
impl PartialEq for StorageCost
Source§fn eq(&self, other: &StorageCost) -> bool
fn eq(&self, other: &StorageCost) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for StorageCost
impl StructuralPartialEq for StorageCost
Auto Trait Implementations§
impl Freeze for StorageCost
impl RefUnwindSafe for StorageCost
impl Send for StorageCost
impl Sync for StorageCost
impl Unpin for StorageCost
impl UnsafeUnpin for StorageCost
impl UnwindSafe for StorageCost
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