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>,
}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>Trait Implementations§
Source§impl Clone for ServerPeerMessage
impl Clone for ServerPeerMessage
Source§fn clone(&self) -> ServerPeerMessage
fn clone(&self) -> ServerPeerMessage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ServerPeerMessage
impl Debug for ServerPeerMessage
Source§impl<'de> Deserialize<'de> for ServerPeerMessage
impl<'de> Deserialize<'de> for ServerPeerMessage
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 ServerPeerMessage
impl RefUnwindSafe for ServerPeerMessage
impl Send for ServerPeerMessage
impl Sync for ServerPeerMessage
impl Unpin for ServerPeerMessage
impl UnsafeUnpin for ServerPeerMessage
impl UnwindSafe for ServerPeerMessage
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