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§

source

const SCOPE: IntentScope

Required Methods§

source

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

Provided Methods§

source

fn scope(&self) -> IntentScope

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