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§
Sourcefn participant_dids(&self) -> Vec<String>
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§
Sourcefn routing_hints(&self) -> RoutingHints
fn routing_hints(&self) -> RoutingHints
Get routing hints for message delivery
Sourcefn transaction_context(&self) -> Option<TransactionContext>
fn transaction_context(&self) -> Option<TransactionContext>
Get transaction context if applicable
Sourcefn transaction_id(&self) -> Option<String>
fn transaction_id(&self) -> Option<String>
Get transaction ID if available