identity_iota_interaction::types::message_envelope

Trait Message

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 Constants§

const SCOPE: IntentScope

Required Associated Types§

Required Methods§

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

Provided Methods§

fn scope(&self) -> IntentScope

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

§

impl Message for TransactionEffects

§

const SCOPE: IntentScope = IntentScope::TransactionEffects

§

type DigestType = TransactionEffectsDigest

§

impl Message for CheckpointSummary

§

const SCOPE: IntentScope = IntentScope::CheckpointSummary

§

type DigestType = CheckpointDigest

§

impl Message for SenderSignedData

§

const SCOPE: IntentScope = IntentScope::SenderSignedTransaction

§

type DigestType = TransactionDigest