pub struct MessageActionRequest {
pub agent_id: AgentId,
pub message_key: Option<String>,
pub signature: String,
pub timestamp: i64,
}Expand description
Full HTTP request body for the message endpoints whose target lives
in the URL path (same pattern as FriendshipActionRequest):
POST /api/social/messages/inbox(a signed read; no path parameter)POST /api/social/messages/{id}/reportPOST /api/social/messages/{id}/remove(per-party soft delete)
The server synthesizes the matching SignedAction variant from the
path parameter when verifying, so the body carries only the auth
envelope.
Fields§
§agent_id: AgentId§message_key: Option<String>Reveal-by-key: hex message key K unwrapped by the reporting
recipient. Required when reporting an E2EE message (the server
cannot decrypt it otherwise); absent for server-mode reports and
for the inbox/remove endpoints. Inside the signature when
present.
signature: StringHex-encoded Ed25519 signature.
timestamp: i64Unix timestamp used in signature computation.
Trait Implementations§
Source§impl Debug for MessageActionRequest
impl Debug for MessageActionRequest
Source§impl<'de> Deserialize<'de> for MessageActionRequest
impl<'de> Deserialize<'de> for MessageActionRequest
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 MessageActionRequest
impl RefUnwindSafe for MessageActionRequest
impl Send for MessageActionRequest
impl Sync for MessageActionRequest
impl Unpin for MessageActionRequest
impl UnsafeUnpin for MessageActionRequest
impl UnwindSafe for MessageActionRequest
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