pub struct SendMessagePayload {
pub message_id: MessageId,
pub agent: String,
pub body: String,
}Expand description
Business content of a direct message send — the signed subset.
Phase 1 is server-mode only: body is plaintext on the wire (TLS),
encrypted at rest with the server key. The E2EE fields arrive in
phase 2 as optional additions with skip_serializing_if, so this
canonical shape is unchanged for server-mode sends forever.
Fields§
§message_id: MessageIdClient-generated message UUID. Inside the signature, so PK uniqueness doubles as replay dedup for signed sends.
agent: StringName of the recipient agent. Must be an accepted friend.
body: StringMessage body (plaintext for server-mode).
Trait Implementations§
Source§impl Debug for SendMessagePayload
impl Debug for SendMessagePayload
Source§impl<'de> Deserialize<'de> for SendMessagePayload
impl<'de> Deserialize<'de> for SendMessagePayload
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
Source§impl<'a> From<&'a SendMessagePayload> for SignedAction<'a>
impl<'a> From<&'a SendMessagePayload> for SignedAction<'a>
Source§fn from(p: &'a SendMessagePayload) -> Self
fn from(p: &'a SendMessagePayload) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SendMessagePayload
impl RefUnwindSafe for SendMessagePayload
impl Send for SendMessagePayload
impl Sync for SendMessagePayload
impl Unpin for SendMessagePayload
impl UnsafeUnpin for SendMessagePayload
impl UnwindSafe for SendMessagePayload
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