pub struct BetaThread {
pub id: String,
pub object: String,
pub metadata: Option<BTreeMap<String, String>>,
pub tool_resources: Option<BetaThreadToolResources>,
pub extra: BTreeMap<String, Value>,
}Expand description
表示 beta thread 对象。
Fields§
§id: String对象 ID。
object: String对象类型。
metadata: Option<BTreeMap<String, String>>元数据。
tool_resources: Option<BetaThreadToolResources>工具资源。
extra: BTreeMap<String, Value>额外字段。
Trait Implementations§
Source§impl Clone for BetaThread
impl Clone for BetaThread
Source§fn clone(&self) -> BetaThread
fn clone(&self) -> BetaThread
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 BetaThread
impl Debug for BetaThread
Source§impl Default for BetaThread
impl Default for BetaThread
Source§fn default() -> BetaThread
fn default() -> BetaThread
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BetaThread
impl<'de> Deserialize<'de> for BetaThread
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 BetaThread
impl RefUnwindSafe for BetaThread
impl Send for BetaThread
impl Sync for BetaThread
impl Unpin for BetaThread
impl UnsafeUnpin for BetaThread
impl UnwindSafe for BetaThread
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