pub trait TransactionPayloadPreparable: HasSummary + Sized {
    type Raw: RawTransactionPayload;

    // Required method
    fn prepare_for_payload(
        decoder: &mut TransactionDecoder<'_>
    ) -> Result<Self, PrepareError>;

    // Provided methods
    fn prepare_from_raw(raw: &Self::Raw) -> Result<Self, PrepareError> { ... }
    fn prepare_from_payload(payload: &[u8]) -> Result<Self, PrepareError> { ... }
}

Required Associated Types§

Required Methods§

fn prepare_for_payload( decoder: &mut TransactionDecoder<'_> ) -> Result<Self, PrepareError>

Prepares value from a manifest decoder by reading the full SBOR value body (with the value kind)

Provided Methods§

fn prepare_from_raw(raw: &Self::Raw) -> Result<Self, PrepareError>

fn prepare_from_payload(payload: &[u8]) -> Result<Self, PrepareError>

Prepares from a full payload

Object Safety§

This trait is not object safe.

Implementors§