pub struct PlatformVersion {
pub protocol_version: ProtocolVersion,
pub dpp: DPPVersion,
pub drive: DriveVersion,
pub drive_abci: DriveAbciVersion,
pub consensus: ConsensusVersions,
pub fee_version: FeeVersion,
pub system_data_contracts: SystemDataContractVersions,
pub system_limits: SystemLimits,
}Fields§
§protocol_version: ProtocolVersion§dpp: DPPVersion§drive: DriveVersion§drive_abci: DriveAbciVersion§consensus: ConsensusVersions§fee_version: FeeVersion§system_data_contracts: SystemDataContractVersions§system_limits: SystemLimitsImplementations§
Source§impl PlatformVersion
impl PlatformVersion
pub fn get<'a>( version: ProtocolVersion, ) -> Result<&'a Self, PlatformVersionError>
pub fn get_optional<'a>(version: ProtocolVersion) -> Option<&'a Self>
pub fn get_version_or_latest<'a>( version: Option<ProtocolVersion>, ) -> Result<&'a Self, PlatformVersionError>
pub fn first<'a>() -> &'a Self
pub fn latest<'a>() -> &'a Self
pub fn desired<'a>() -> &'a Self
Trait Implementations§
Source§impl Clone for PlatformVersion
impl Clone for PlatformVersion
Source§fn clone(&self) -> PlatformVersion
fn clone(&self) -> PlatformVersion
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 moreAuto Trait Implementations§
impl Freeze for PlatformVersion
impl RefUnwindSafe for PlatformVersion
impl Send for PlatformVersion
impl Sync for PlatformVersion
impl Unpin for PlatformVersion
impl UnwindSafe for PlatformVersion
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.