pub struct InboundEnvelope {
pub msg_type: String,
pub sender: String,
pub recipient: Option<String>,
pub conversation_id: String,
pub slot: u64,
pub nonce: u64,
pub payload_b64: String,
pub feedback: Option<Value>,
}Expand description
Inbound envelope received from GET /ws/inbox.
sender is Ed25519-authenticated at the protocol layer — it cannot be
spoofed regardless of what the payload claims.
Fields§
§msg_type: StringMessage type: "PROPOSE", "ACCEPT", "REJECT", "DELIVER", "FEEDBACK", …
sender: StringAuthenticated sender agent_id (hex 32 bytes).
recipient: Option<String>Recipient agent_id — typically the local node (hex 32 bytes).
conversation_id: StringConversation identifier (hex 16 bytes).
slot: u64Beacon slot the envelope was committed in.
nonce: u64Per-sender replay-prevention nonce.
payload_b64: StringPayload bytes as base64.
feedback: Option<Value>Decoded FEEDBACK fields (only present for FEEDBACK messages).
Trait Implementations§
Source§impl Clone for InboundEnvelope
impl Clone for InboundEnvelope
Source§fn clone(&self) -> InboundEnvelope
fn clone(&self) -> InboundEnvelope
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InboundEnvelope
impl Debug for InboundEnvelope
Source§impl<'de> Deserialize<'de> for InboundEnvelope
impl<'de> Deserialize<'de> for InboundEnvelope
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for InboundEnvelope
impl RefUnwindSafe for InboundEnvelope
impl Send for InboundEnvelope
impl Sync for InboundEnvelope
impl Unpin for InboundEnvelope
impl UnsafeUnpin for InboundEnvelope
impl UnwindSafe for InboundEnvelope
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