Trait iota_types::message_envelope::Message

source ·
pub trait Message {
    type DigestType: Clone + Debug;

    const SCOPE: IntentScope;

    // Required method
    fn digest(&self) -> Self::DigestType;

    // Provided method
    fn scope(&self) -> IntentScope { ... }
}

Required Associated Types§

Required Associated Constants§

Required Methods§

source

fn digest(&self) -> Self::DigestType

Provided Methods§

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Message for TransactionEffects

§

type DigestType = TransactionEffectsDigest

source§

const SCOPE: IntentScope = IntentScope::TransactionEffects

source§

impl Message for CheckpointSummary

§

type DigestType = CheckpointDigest

source§

const SCOPE: IntentScope = IntentScope::CheckpointSummary

source§

impl Message for SenderSignedData

§

type DigestType = TransactionDigest

source§

const SCOPE: IntentScope = IntentScope::SenderSignedTransaction