plutus_ledger_api::plutus_data

Trait IsPlutusData

Source
pub trait IsPlutusData {
    // Required methods
    fn to_plutus_data(&self) -> PlutusData;
    fn from_plutus_data(
        plutus_data: &PlutusData,
    ) -> Result<Self, PlutusDataError>
       where Self: Sized;
}

Required Methods§

Implementations on Foreign Types§

Source§

impl IsPlutusData for bool

Source§

impl IsPlutusData for char

Source§

impl IsPlutusData for ()

Source§

impl IsPlutusData for String

Source§

impl IsPlutusData for Vec<u8>

Source§

impl IsPlutusData for BigInt

Source§

impl<A, B> IsPlutusData for (A, B)

Source§

impl<K, V> IsPlutusData for BTreeMap<K, V>
where K: IsPlutusData + Eq + Ord, V: IsPlutusData,

Source§

impl<T> IsPlutusData for Option<T>
where T: IsPlutusData,

Source§

impl<T> IsPlutusData for BTreeSet<T>
where T: IsPlutusData + Eq + Ord,

Source§

impl<T> IsPlutusData for Vec<T>
where T: IsPlutusData,

Source§

impl<T, E> IsPlutusData for Result<T, E>

Implementors§

Source§

impl IsPlutusData for Credential

Source§

impl IsPlutusData for StakingCredential

Source§

impl IsPlutusData for DCert

Source§

impl IsPlutusData for plutus_ledger_api::v1::transaction::ScriptPurpose

Source§

impl IsPlutusData for CurrencySymbol

Source§

impl IsPlutusData for OutputDatum

Source§

impl IsPlutusData for DRep

Source§

impl IsPlutusData for Delegatee

Source§

impl IsPlutusData for GovernanceAction

Source§

impl IsPlutusData for ScriptInfo

Source§

impl IsPlutusData for plutus_ledger_api::v3::transaction::ScriptPurpose

Source§

impl IsPlutusData for TxCert

Source§

impl IsPlutusData for Vote

Source§

impl IsPlutusData for Voter

Source§

impl IsPlutusData for PlutusData

Source§

impl IsPlutusData for Address

Source§

impl IsPlutusData for CertificateIndex

Source§

impl IsPlutusData for Slot

Source§

impl IsPlutusData for TransactionIndex

Source§

impl IsPlutusData for Ed25519PubKeyHash

Source§

impl IsPlutusData for LedgerBytes

Source§

impl IsPlutusData for PaymentPubKeyHash

Source§

impl IsPlutusData for StakePubKeyHash

Source§

impl IsPlutusData for Datum

Source§

impl IsPlutusData for DatumHash

Source§

impl IsPlutusData for Redeemer

Source§

impl IsPlutusData for RedeemerHash

Source§

impl IsPlutusData for MintingPolicyHash

Source§

impl IsPlutusData for ScriptHash

Source§

impl IsPlutusData for ValidatorHash

Source§

impl IsPlutusData for POSIXTime

Source§

impl IsPlutusData for plutus_ledger_api::v1::transaction::ScriptContext

Source§

impl IsPlutusData for plutus_ledger_api::v1::transaction::TransactionHash

Source§

impl IsPlutusData for plutus_ledger_api::v1::transaction::TransactionInfo

Source§

impl IsPlutusData for plutus_ledger_api::v1::transaction::TransactionInput

Source§

impl IsPlutusData for plutus_ledger_api::v1::transaction::TransactionOutput

Source§

impl IsPlutusData for plutus_ledger_api::v1::transaction::TxInInfo

Source§

impl IsPlutusData for AssetClass

Source§

impl IsPlutusData for Lovelace

Source§

impl IsPlutusData for TokenName

Source§

impl IsPlutusData for Value

Source§

impl IsPlutusData for plutus_ledger_api::v2::transaction::ScriptContext

Source§

impl IsPlutusData for plutus_ledger_api::v2::transaction::TransactionInfo

Source§

impl IsPlutusData for plutus_ledger_api::v2::transaction::TransactionOutput

Source§

impl IsPlutusData for plutus_ledger_api::v2::transaction::TxInInfo

Source§

impl IsPlutusData for Rational

Source§

impl IsPlutusData for ChangedParameters

Source§

impl IsPlutusData for ColdCommitteeCredential

Source§

impl IsPlutusData for Committee

Source§

impl IsPlutusData for Constitution

Source§

impl IsPlutusData for DRepCredential

Source§

impl IsPlutusData for GovernanceActionId

Source§

impl IsPlutusData for HotCommitteeCredential

Source§

impl IsPlutusData for ProposalProcedure

Source§

impl IsPlutusData for ProtocolVersion

Source§

impl IsPlutusData for plutus_ledger_api::v3::transaction::ScriptContext

Source§

impl IsPlutusData for plutus_ledger_api::v3::transaction::TransactionHash

Source§

impl IsPlutusData for plutus_ledger_api::v3::transaction::TransactionInfo

Source§

impl IsPlutusData for plutus_ledger_api::v3::transaction::TransactionInput

Source§

impl IsPlutusData for plutus_ledger_api::v3::transaction::TxInInfo

Source§

impl<K: IsPlutusData, V: IsPlutusData> IsPlutusData for AssocMap<K, V>

Source§

impl<T> IsPlutusData for Extended<T>
where T: FeatureTraits + IsPlutusData,

Source§

impl<T> IsPlutusData for LowerBound<T>
where T: FeatureTraits + IsPlutusData,

Source§

impl<T> IsPlutusData for PlutusInterval<T>
where T: FeatureTraits + IsPlutusData,

Source§

impl<T> IsPlutusData for UpperBound<T>
where T: FeatureTraits + IsPlutusData,