pub struct FeeVersion {
pub fee_version_number: FeeVersionNumber,
pub uses_version_fee_multiplier_permille: Option<u64>,
pub storage: FeeStorageVersion,
pub signature: FeeSignatureVersion,
pub hashing: FeeHashingVersion,
pub processing: FeeProcessingVersion,
pub data_contract_validation: FeeDataContractValidationVersion,
pub data_contract_registration: FeeDataContractRegistrationVersion,
pub state_transition_min_fees: StateTransitionMinFees,
pub vote_resolution_fund_fees: VoteResolutionFundFees,
}Fields§
§fee_version_number: FeeVersionNumber§uses_version_fee_multiplier_permille: Option<u64>§storage: FeeStorageVersion§signature: FeeSignatureVersion§hashing: FeeHashingVersion§processing: FeeProcessingVersion§data_contract_validation: FeeDataContractValidationVersion§data_contract_registration: FeeDataContractRegistrationVersion§state_transition_min_fees: StateTransitionMinFees§vote_resolution_fund_fees: VoteResolutionFundFeesImplementations§
Source§impl FeeVersion
impl FeeVersion
pub fn as_static(&self) -> &'static FeeVersion
pub fn get<'a>( version: FeeVersionNumber, ) -> Result<&'a Self, PlatformVersionError>
pub fn get_optional<'a>(version: FeeVersionNumber) -> Option<&'a Self>
pub fn first<'a>() -> &'a Self
pub fn latest<'a>() -> &'a Self
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for FeeVersion
impl<'__de, __Context> BorrowDecode<'__de, __Context> for FeeVersion
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 FeeVersion
impl Clone for FeeVersion
Source§fn clone(&self) -> FeeVersion
fn clone(&self) -> FeeVersion
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 FeeVersion
impl Debug for FeeVersion
Source§impl<__Context> Decode<__Context> for FeeVersion
impl<__Context> Decode<__Context> for FeeVersion
Source§impl Default for FeeVersion
impl Default for FeeVersion
Source§fn default() -> FeeVersion
fn default() -> FeeVersion
Returns the “default value” for a type. Read more
Source§impl Encode for FeeVersion
impl Encode for FeeVersion
Source§impl From<FeeVersionFieldsBeforeVersion4> for FeeVersion
impl From<FeeVersionFieldsBeforeVersion4> for FeeVersion
Source§fn from(value: FeeVersionFieldsBeforeVersion4) -> Self
fn from(value: FeeVersionFieldsBeforeVersion4) -> Self
Converts to this type from the input type.
Source§impl PartialEq for FeeVersion
impl PartialEq for FeeVersion
impl Eq for FeeVersion
impl StructuralPartialEq for FeeVersion
Auto Trait Implementations§
impl Freeze for FeeVersion
impl RefUnwindSafe for FeeVersion
impl Send for FeeVersion
impl Sync for FeeVersion
impl Unpin for FeeVersion
impl UnwindSafe for FeeVersion
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.