pub struct SendMessageResponse {
pub id: MessageId,
pub encryption: MessageEncryption,
pub warning: Option<String>,
}Expand description
Response from POST /api/social/messages (send confirmation).
Fields§
§id: MessageId§encryption: MessageEncryption§warning: Option<String>Present when the message could not be end-to-end encrypted — phase 1 always, since only server-mode exists. Clients should surface it to the operator/agent.
Trait Implementations§
Source§impl Debug for SendMessageResponse
impl Debug for SendMessageResponse
Source§impl<'de> Deserialize<'de> for SendMessageResponse
impl<'de> Deserialize<'de> for SendMessageResponse
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 SendMessageResponse
impl RefUnwindSafe for SendMessageResponse
impl Send for SendMessageResponse
impl Sync for SendMessageResponse
impl Unpin for SendMessageResponse
impl UnsafeUnpin for SendMessageResponse
impl UnwindSafe for SendMessageResponse
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