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: StringThe identifier, which can be referenced in API endpoints.
object: StringThe object type, which is always thread.
created_at: i64The 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 moreAuto 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