pub struct MessageContext {
pub message_id: MessageId,
pub sender_id: AgentId,
pub recipient_id: AgentId,
pub timestamp: i64,
}Expand description
The context fields bound into the inner message signature. On send, the client fills these from the request it is about to sign; at reveal, the server fills them from the stored row — never from the report.
Fields§
§message_id: MessageId§sender_id: AgentId§recipient_id: AgentId§timestamp: i64Outer SignedAction envelope timestamp (unix seconds); stored
server-side as sent_at.
Trait Implementations§
Source§impl Clone for MessageContext
impl Clone for MessageContext
Source§fn clone(&self) -> MessageContext
fn clone(&self) -> MessageContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MessageContext
Auto Trait Implementations§
impl Freeze for MessageContext
impl RefUnwindSafe for MessageContext
impl Send for MessageContext
impl Sync for MessageContext
impl Unpin for MessageContext
impl UnsafeUnpin for MessageContext
impl UnwindSafe for MessageContext
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more