ValueConvertible

Trait ValueConvertible 

Source
pub trait ValueConvertible: Serialize + DeserializeOwned {
    // Provided methods
    fn to_object(&self) -> Result<Value, ProtocolError>
       where Self: Sized { ... }
    fn into_object(self) -> Result<Value, ProtocolError>
       where Self: Sized { ... }
    fn from_object(value: Value) -> Result<Self, ProtocolError>
       where Self: Sized { ... }
    fn from_object_ref(value: &Value) -> Result<Self, ProtocolError>
       where Self: Sized { ... }
}

Provided Methods§

Source

fn to_object(&self) -> Result<Value, ProtocolError>
where Self: Sized,

Source

fn into_object(self) -> Result<Value, ProtocolError>
where Self: Sized,

Source

fn from_object(value: Value) -> Result<Self, ProtocolError>
where Self: Sized,

Source

fn from_object_ref(value: &Value) -> Result<Self, ProtocolError>
where Self: Sized,

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 ValueConvertible for ExtendedBlockInfo

Source§

impl ValueConvertible for ExtendedEpochInfo

Source§

impl ValueConvertible for FinalizedEpochInfo

Source§

impl ValueConvertible for TokenConfiguration

Source§

impl ValueConvertible for TokenConfigurationConvention

Source§

impl ValueConvertible for TokenConfigurationLocalization

Source§

impl ValueConvertible for ChangeControlRules

Source§

impl ValueConvertible for Group

Source§

impl ValueConvertible for GroupActionEvent

Source§

impl ValueConvertible for GroupAction

Source§

impl ValueConvertible for Identity

Source§

impl ValueConvertible for ContractBounds

Source§

impl ValueConvertible for IdentityPublicKey

Source§

impl ValueConvertible for AddressFundingFromAssetLockTransition

Source§

impl ValueConvertible for AddressFundsTransferTransition

Source§

impl ValueConvertible for DataContractCreateTransition

Source§

impl ValueConvertible for DataContractUpdateTransition

Source§

impl ValueConvertible for IdentityCreateFromAddressesTransition

Source§

impl ValueConvertible for IdentityCreateTransition

Source§

impl ValueConvertible for IdentityCreditTransferToAddressesTransition

Source§

impl ValueConvertible for IdentityCreditTransferTransition

Source§

impl ValueConvertible for IdentityCreditWithdrawalTransition

Source§

impl ValueConvertible for IdentityTopUpFromAddressesTransition

Source§

impl ValueConvertible for IdentityTopUpTransition

Source§

impl ValueConvertible for IdentityUpdateTransition

Source§

impl ValueConvertible for MasternodeVoteTransition

Source§

impl ValueConvertible for IdentityPublicKeyInCreation

Source§

impl ValueConvertible for IdentityTokenInfo

Source§

impl ValueConvertible for TokenStatus

Source§

impl ValueConvertible for TokenEvent

Source§

impl ValueConvertible for ContenderWithSerializedDocument

Source§

impl ValueConvertible for ResourceVoteChoice

Source§

impl ValueConvertible for ContestedDocumentVotePollWinnerInfo

Source§

impl ValueConvertible for VotePoll

Source§

impl ValueConvertible for Vote

Source§

impl ValueConvertible for ResourceVote

Source§

impl ValueConvertible for BlockInfo

Source§

impl ValueConvertible for ChainAssetLockProof

Source§

impl ValueConvertible for InstantAssetLockProof

Source§

impl ValueConvertible for IdentityV0

Source§

impl ValueConvertible for ContestedDocumentResourceVotePoll