pub struct Thread {
pub history_id: String,
pub id: String,
pub messages: Vec<Message>,
pub snippet: Option<String>,
}
Expand description
A collection of messages representing a conversation.
Fields§
§history_id: String
The ID of the last history record that modified this thread.
id: String
The unique ID of the thread.
messages: Vec<Message>
The list of messages in the thread.
snippet: Option<String>
A short part of the message text.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Thread
impl<'de> Deserialize<'de> for Thread
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 Thread
impl RefUnwindSafe for Thread
impl Send for Thread
impl Sync for Thread
impl Unpin for Thread
impl UnwindSafe for Thread
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