pub struct ThreadObject {
pub id: String,
pub object: String,
pub created_at: i64,
pub tool_resources: Option<ThreadObject_ToolResources>,
pub metadata: Option<Metadata>,
}
Expand description
Represents a thread that contains messages.
Fields§
§id: String
The identifier, which can be referenced in API endpoints.
object: String
The object type, which is always thread
.
created_at: i64
The Unix timestamp (in seconds) for when the thread was created.
tool_resources: Option<ThreadObject_ToolResources>
§metadata: Option<Metadata>
Trait Implementations§
Source§impl Clone for ThreadObject
impl Clone for ThreadObject
Source§fn clone(&self) -> ThreadObject
fn clone(&self) -> ThreadObject
Returns a copy 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 ThreadObject
impl Debug for ThreadObject
Source§impl Default for ThreadObject
impl Default for ThreadObject
Source§fn default() -> ThreadObject
fn default() -> ThreadObject
Returns the “default value” for a type. 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