Trait MessageContext

Source
pub trait MessageContext {
    // Required method
    fn participant_dids(&self) -> Vec<String>;

    // Provided methods
    fn routing_hints(&self) -> RoutingHints { ... }
    fn transaction_context(&self) -> Option<TransactionContext> { ... }
    fn transaction_id(&self) -> Option<String> { ... }
}
Expand description

Message context providing participants, routing hints, and transaction context

Required Methods§

Source

fn participant_dids(&self) -> Vec<String>

Extract all participant DIDs from the message This replaces the old participants() method and works with Agent/Party types directly

Provided Methods§

Source

fn routing_hints(&self) -> RoutingHints

Get routing hints for message delivery

Source

fn transaction_context(&self) -> Option<TransactionContext>

Get transaction context if applicable

Source

fn transaction_id(&self) -> Option<String>

Get transaction ID if available

Implementors§