pub struct ThreadObject {
pub id: String,
pub object: String,
pub created_at: i64,
pub metadata: HashMap<String, String>,
pub headers: Option<HashMap<String, String>>,
}
Expand description
Represents a thread object with various attributes.
Fields§
§id: String
Unique identifier for the thread.
object: String
Object type, typically “thread”.
created_at: i64
Timestamp of when the thread was created.
metadata: HashMap<String, String>
Metadata associated with the thread.
headers: Option<HashMap<String, String>>
Optional headers from the response.
Trait Implementations§
Source§impl Debug for ThreadObject
impl Debug for ThreadObject
Source§impl<'de> Deserialize<'de> for ThreadObject
impl<'de> Deserialize<'de> for ThreadObject
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 ThreadObject
impl RefUnwindSafe for ThreadObject
impl Send for ThreadObject
impl Sync for ThreadObject
impl Unpin for ThreadObject
impl UnwindSafe for ThreadObject
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