pub trait TransactionPayload: ManifestEncode + ManifestDecode + ManifestCategorize + ManifestSborTuple {
    type Versioned: ManifestDecode + IsFixedEnumVariant<ManifestCustomValueKind, Self>;
    type Prepared: TransactionPayloadPreparable<Raw = Self::Raw>;
    type Raw: RawTransactionPayload;

    // Provided methods
    fn to_raw(&self) -> Result<Self::Raw, EncodeError> { ... }
    fn to_payload_bytes(&self) -> Result<Vec<u8>, EncodeError> { ... }
    fn from_raw(raw: &Self::Raw) -> Result<Self, DecodeError> { ... }
    fn from_payload_bytes(payload_bytes: &[u8]) -> Result<Self, DecodeError> { ... }
    fn prepare(&self) -> Result<Self::Prepared, PrepareError> { ... }
}

Required Associated Types§

Provided Methods§

fn to_raw(&self) -> Result<Self::Raw, EncodeError>

fn to_payload_bytes(&self) -> Result<Vec<u8>, EncodeError>

fn from_raw(raw: &Self::Raw) -> Result<Self, DecodeError>

fn from_payload_bytes(payload_bytes: &[u8]) -> Result<Self, DecodeError>

fn prepare(&self) -> Result<Self::Prepared, PrepareError>

Object Safety§

This trait is not object safe.

Implementors§

§

impl TransactionPayload for IntentV1

§

type Versioned = FixedEnumVariant<transaction::::model::v1::intent::{impl#0}::Versioned::{constant#0}, IntentV1>

§

type Prepared = PreparedIntentV1

§

type Raw = RawIntent

§

impl TransactionPayload for NotarizedTransactionV1

§

type Versioned = FixedEnumVariant<transaction::::model::v1::notarized_transaction::{impl#0}::Versioned::{constant#0}, NotarizedTransactionV1>

§

type Prepared = PreparedNotarizedTransactionV1

§

type Raw = RawNotarizedTransaction

§

impl TransactionPayload for SignedIntentV1

§

type Versioned = FixedEnumVariant<transaction::::model::v1::signed_intent::{impl#0}::Versioned::{constant#0}, SignedIntentV1>

§

type Prepared = PreparedSignedIntentV1

§

type Raw = RawSignedIntent

§

impl TransactionPayload for SystemTransactionV1

§

type Versioned = FixedEnumVariant<transaction::::model::v1::system_transaction::{impl#0}::Versioned::{constant#0}, SystemTransactionV1>

§

type Prepared = PreparedSystemTransactionV1

§

type Raw = RawSystemTransaction