pub struct Conversation {Show 14 fields
pub id: String,
pub conversation_type: String,
pub name: Option<String>,
pub avatar: Option<String>,
pub description: Option<String>,
pub max_members: Option<i32>,
pub created_by_id: Option<String>,
pub last_msg_at: Option<String>,
pub last_msg_id: Option<String>,
pub created_at: String,
pub updated_at: String,
pub deleted_at: Option<String>,
pub messages: Option<Vec<Message>>,
pub last_message: Option<Message>,
}Expand description
会话
Fields§
§id: String§conversation_type: String§name: Option<String>§avatar: Option<String>§description: Option<String>§max_members: Option<i32>§created_by_id: Option<String>§last_msg_at: Option<String>§last_msg_id: Option<String>§created_at: String§updated_at: String§deleted_at: Option<String>§messages: Option<Vec<Message>>可选的最近消息列表(预览)
last_message: Option<Message>最后一条消息预览
Trait Implementations§
Source§impl Clone for Conversation
impl Clone for Conversation
Source§fn clone(&self) -> Conversation
fn clone(&self) -> Conversation
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 Conversation
impl Debug for Conversation
Source§impl<'de> Deserialize<'de> for Conversation
impl<'de> Deserialize<'de> for Conversation
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Conversation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Conversation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Conversation
impl Serialize for Conversation
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for Conversation
impl RefUnwindSafe for Conversation
impl Send for Conversation
impl Sync for Conversation
impl Unpin for Conversation
impl UnsafeUnpin for Conversation
impl UnwindSafe for Conversation
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