pub struct FeeStorageVersionFieldsBeforeVersion4 {
pub storage_disk_usage_credit_per_byte: u64,
pub storage_processing_credit_per_byte: u64,
pub storage_load_credit_per_byte: u64,
pub non_storage_load_credit_per_byte: u64,
pub storage_seek_cost: u64,
}Expand description
The storage fee table exactly as every pre-4.2 release serialized it
(5 fields). FeeStorageVersion gained
ttl_ephemeral_disk_usage_credit_per_byte in 4.2; embedding the live
struct here would shift the frozen pre-1.4 platform-state wire format
and break deserialization of old stored states (bincode
UnexpectedEnd). Any future field added to FeeStorageVersion must
NOT be added here.
Fields§
§storage_disk_usage_credit_per_byte: u64§storage_processing_credit_per_byte: u64§storage_load_credit_per_byte: u64§non_storage_load_credit_per_byte: u64§storage_seek_cost: u64Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for FeeStorageVersionFieldsBeforeVersion4
impl<'__de, __Context> BorrowDecode<'__de, __Context> for FeeStorageVersionFieldsBeforeVersion4
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl Clone for FeeStorageVersionFieldsBeforeVersion4
impl Clone for FeeStorageVersionFieldsBeforeVersion4
Source§fn clone(&self) -> FeeStorageVersionFieldsBeforeVersion4
fn clone(&self) -> FeeStorageVersionFieldsBeforeVersion4
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<__Context> Decode<__Context> for FeeStorageVersionFieldsBeforeVersion4
impl<__Context> Decode<__Context> for FeeStorageVersionFieldsBeforeVersion4
Source§impl Default for FeeStorageVersionFieldsBeforeVersion4
impl Default for FeeStorageVersionFieldsBeforeVersion4
Source§fn default() -> FeeStorageVersionFieldsBeforeVersion4
fn default() -> FeeStorageVersionFieldsBeforeVersion4
Returns the “default value” for a type. Read more
impl Eq for FeeStorageVersionFieldsBeforeVersion4
Source§impl From<FeeStorageVersionFieldsBeforeVersion4> for FeeStorageVersion
impl From<FeeStorageVersionFieldsBeforeVersion4> for FeeStorageVersion
Source§fn from(value: FeeStorageVersionFieldsBeforeVersion4) -> Self
fn from(value: FeeStorageVersionFieldsBeforeVersion4) -> Self
Converts to this type from the input type.
Source§impl PartialEq for FeeStorageVersionFieldsBeforeVersion4
impl PartialEq for FeeStorageVersionFieldsBeforeVersion4
Source§fn eq(&self, other: &FeeStorageVersionFieldsBeforeVersion4) -> bool
fn eq(&self, other: &FeeStorageVersionFieldsBeforeVersion4) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FeeStorageVersionFieldsBeforeVersion4
Auto Trait Implementations§
impl Freeze for FeeStorageVersionFieldsBeforeVersion4
impl RefUnwindSafe for FeeStorageVersionFieldsBeforeVersion4
impl Send for FeeStorageVersionFieldsBeforeVersion4
impl Sync for FeeStorageVersionFieldsBeforeVersion4
impl Unpin for FeeStorageVersionFieldsBeforeVersion4
impl UnsafeUnpin for FeeStorageVersionFieldsBeforeVersion4
impl UnwindSafe for FeeStorageVersionFieldsBeforeVersion4
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, U> IntoPlatformVersioned<U> for Twhere
U: FromPlatformVersioned<T>,
impl<T, U> IntoPlatformVersioned<U> for Twhere
U: FromPlatformVersioned<T>,
Source§fn into_platform_versioned(self, platform_version: &PlatformVersion) -> U
fn into_platform_versioned(self, platform_version: &PlatformVersion) -> U
Performs the conversion.
Source§impl<T, U> TryIntoPlatformVersioned<U> for Twhere
U: TryFromPlatformVersioned<T>,
impl<T, U> TryIntoPlatformVersioned<U> for Twhere
U: TryFromPlatformVersioned<T>,
Source§type Error = <U as TryFromPlatformVersioned<T>>::Error
type Error = <U as TryFromPlatformVersioned<T>>::Error
The type returned in the event of a conversion error.
Source§fn try_into_platform_versioned(
self,
platform_version: &PlatformVersion,
) -> Result<U, <U as TryFromPlatformVersioned<T>>::Error>
fn try_into_platform_versioned( self, platform_version: &PlatformVersion, ) -> Result<U, <U as TryFromPlatformVersioned<T>>::Error>
Performs the conversion.