pub struct ConversationWithMessages {Show 14 fields
pub id: String,
pub phone_number: String,
pub status: ConversationStatus,
pub unread_count: i32,
pub message_count: i32,
pub last_message_text: Option<String>,
pub last_message_at: Option<String>,
pub last_message_direction: Option<String>,
pub metadata: HashMap<String, Value>,
pub tags: Vec<String>,
pub contact_id: Option<String>,
pub created_at: Option<String>,
pub updated_at: Option<String>,
pub messages: Option<ConversationMessages>,
}Expand description
A conversation with its messages.
Fields§
§id: StringUnique conversation identifier.
phone_number: StringPhone number of the contact.
status: ConversationStatusConversation status.
unread_count: i32Number of unread messages.
message_count: i32Total number of messages.
last_message_text: Option<String>Text of the last message.
last_message_at: Option<String>When the last message was sent/received.
last_message_direction: Option<String>Direction of the last message.
metadata: HashMap<String, Value>Custom metadata.
Conversation tags.
contact_id: Option<String>Associated contact ID.
created_at: Option<String>When the conversation was created.
updated_at: Option<String>When the conversation was last updated.
messages: Option<ConversationMessages>Conversation messages (when include_messages=true).
Trait Implementations§
Source§impl Clone for ConversationWithMessages
impl Clone for ConversationWithMessages
Source§fn clone(&self) -> ConversationWithMessages
fn clone(&self) -> ConversationWithMessages
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 ConversationWithMessages
impl Debug for ConversationWithMessages
Source§impl<'de> Deserialize<'de> for ConversationWithMessages
impl<'de> Deserialize<'de> for ConversationWithMessages
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 ConversationWithMessages
impl RefUnwindSafe for ConversationWithMessages
impl Send for ConversationWithMessages
impl Sync for ConversationWithMessages
impl Unpin for ConversationWithMessages
impl UnsafeUnpin for ConversationWithMessages
impl UnwindSafe for ConversationWithMessages
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