pub struct ServerPeerMessage {
pub message_id: String,
pub body: String,
pub sender: String,
pub created_at: String,
pub updated_at: String,
pub acknowledged: Option<bool>,
pub authenticated_decrypt: bool,
}Expand description
A message as returned by the server’s list endpoint.
Uses explicit serde(rename) on camelCase fields because the server mixes
naming conventions: messageId, sender are camelCase but created_at /
updated_at are snake_case. Do NOT use deny_unknown_fields — the server
may add new fields at any time.
Fields§
§message_id: String§body: String§sender: String§created_at: String§updated_at: String§acknowledged: Option<bool>§authenticated_decrypt: booltrue iff body was produced by a genuine authenticated (AEAD) decrypt
of an encrypted envelope against sender’s key — set by
crate::client::MessageBoxClient::list_messages_lite via the typed
decrypt path. ADDITIVE + #[serde(default)]: never sent on the wire by the
server (it is false after deserialization), so this does not break wire
compatibility or any existing consumer (e.g. peerpay). Consumers requiring
sender provenance (the MPC transport) reject bodies with this false.
Trait Implementations§
Source§impl Clone for ServerPeerMessage
impl Clone for ServerPeerMessage
Source§fn clone(&self) -> ServerPeerMessage
fn clone(&self) -> ServerPeerMessage
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more