pub struct SyncConversation {
pub id: String,
pub conversation_type: String,
pub name: Option<String>,
pub avatar: Option<String>,
pub last_msg_id: Option<String>,
pub last_msg_at: Option<String>,
pub created_at: Option<String>,
pub updated_at: Option<String>,
}Expand description
Conversation sync data
Protocol: mqtt-events.md#sync_conversation_list 注意:协议定义的字段有限,created_at 和 updated_at 是可选的
Fields§
§id: String§conversation_type: String§name: Option<String>§avatar: Option<String>§last_msg_id: Option<String>§last_msg_at: Option<String>§created_at: Option<String>可选字段,部分事件可能不包含
updated_at: Option<String>可选字段,部分事件可能不包含
Trait Implementations§
Source§impl Clone for SyncConversation
impl Clone for SyncConversation
Source§fn clone(&self) -> SyncConversation
fn clone(&self) -> SyncConversation
Returns a duplicate of the value. Read more
1.0.0 · 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 SyncConversation
impl Debug for SyncConversation
Source§impl<'de> Deserialize<'de> for SyncConversation
impl<'de> Deserialize<'de> for SyncConversation
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 SyncConversation
impl RefUnwindSafe for SyncConversation
impl Send for SyncConversation
impl Sync for SyncConversation
impl Unpin for SyncConversation
impl UnsafeUnpin for SyncConversation
impl UnwindSafe for SyncConversation
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