#[non_exhaustive]pub struct ModifyThreadRequest {
pub tool_resources: Option<Value>,
pub metadata: BTreeMap<String, String>,
}Expand description
EN: Request body for POST /v1/threads/{thread_id}.
中文:POST /v1/threads/{thread_id} 的请求体。
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.tool_resources: Option<Value>EN: Optional tool resources. 中文:可选的工具资源。
metadata: BTreeMap<String, String>EN: Optional metadata. 中文:可选元数据。
Implementations§
Source§impl ModifyThreadRequest
impl ModifyThreadRequest
Sourcepub fn builder() -> ModifyThreadRequestBuilder
pub fn builder() -> ModifyThreadRequestBuilder
EN: Starts building a thread modification request. 中文:开始构建线程修改请求。
Trait Implementations§
Source§impl Clone for ModifyThreadRequest
impl Clone for ModifyThreadRequest
Source§fn clone(&self) -> ModifyThreadRequest
fn clone(&self) -> ModifyThreadRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ModifyThreadRequest
impl Debug for ModifyThreadRequest
Source§impl Default for ModifyThreadRequest
impl Default for ModifyThreadRequest
Source§fn default() -> ModifyThreadRequest
fn default() -> ModifyThreadRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for ModifyThreadRequest
impl PartialEq for ModifyThreadRequest
Source§fn eq(&self, other: &ModifyThreadRequest) -> bool
fn eq(&self, other: &ModifyThreadRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ModifyThreadRequest
impl Serialize for ModifyThreadRequest
impl StructuralPartialEq for ModifyThreadRequest
Auto Trait Implementations§
impl Freeze for ModifyThreadRequest
impl RefUnwindSafe for ModifyThreadRequest
impl Send for ModifyThreadRequest
impl Sync for ModifyThreadRequest
impl Unpin for ModifyThreadRequest
impl UnsafeUnpin for ModifyThreadRequest
impl UnwindSafe for ModifyThreadRequest
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