TryFromPlatformVersioned

Trait TryFromPlatformVersioned 

pub trait TryFromPlatformVersioned<T>: Sized {
    type Error;

    // Required method
    fn try_from_platform_versioned(
        value: T,
        platform_version: &PlatformVersion,
    ) -> Result<Self, Self::Error>;
}

Required Associated Types§

type Error

The type returned in the event of a conversion error.

Required Methods§

fn try_from_platform_versioned( value: T, platform_version: &PlatformVersion, ) -> Result<Self, Self::Error>

Performs the conversion.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl TryFromPlatformVersioned<&DataContract> for DataContractInSerializationFormat

Source§

impl TryFromPlatformVersioned<&DataContractV0> for DataContractInSerializationFormat

Source§

impl TryFromPlatformVersioned<&DataContractV1> for DataContractInSerializationFormat

Source§

impl TryFromPlatformVersioned<&Value> for Identity

Source§

impl TryFromPlatformVersioned<(DataContract, u64)> for DataContractUpdateTransition

Source§

impl TryFromPlatformVersioned<(DataContract, u64)> for DataContractUpdateTransitionV0

Source§

impl TryFromPlatformVersioned<CreatedDataContract> for StateTransition

Source§

impl TryFromPlatformVersioned<CreatedDataContract> for DataContractCreateTransition

Source§

impl TryFromPlatformVersioned<CreatedDataContract> for DataContractCreateTransitionV0

Source§

impl TryFromPlatformVersioned<DataContract> for DataContractInSerializationFormat

Source§

impl TryFromPlatformVersioned<DataContract> for DataContractCreateTransition

Source§

impl TryFromPlatformVersioned<DataContract> for DataContractCreateTransitionV0

Source§

impl TryFromPlatformVersioned<DataContractV0> for DataContractInSerializationFormat

Source§

impl TryFromPlatformVersioned<DataContractV1> for DataContractInSerializationFormat

Source§

impl TryFromPlatformVersioned<Value> for Identity