#[non_exhaustive]pub struct CreateConversationRequest {
pub metadata: BTreeMap<String, String>,
pub extra: BTreeMap<String, Value>,
}Expand description
EN: Request body for POST /v1/conversations.
中文:POST /v1/conversations 的请求体。
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.metadata: BTreeMap<String, String>EN: Optional metadata. 中文:可选元数据。
extra: BTreeMap<String, Value>EN: Forward-compatible optional fields not yet covered by handwritten types. 中文:手写类型尚未覆盖的前向兼容可选字段。
Implementations§
Source§impl CreateConversationRequest
impl CreateConversationRequest
Sourcepub fn builder() -> CreateConversationRequestBuilder
pub fn builder() -> CreateConversationRequestBuilder
EN: Starts building a conversation creation request. 中文:开始构建会话创建请求。
Trait Implementations§
Source§impl Clone for CreateConversationRequest
impl Clone for CreateConversationRequest
Source§fn clone(&self) -> CreateConversationRequest
fn clone(&self) -> CreateConversationRequest
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 CreateConversationRequest
impl Debug for CreateConversationRequest
Source§impl Default for CreateConversationRequest
impl Default for CreateConversationRequest
Source§fn default() -> CreateConversationRequest
fn default() -> CreateConversationRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for CreateConversationRequest
impl PartialEq for CreateConversationRequest
Source§fn eq(&self, other: &CreateConversationRequest) -> bool
fn eq(&self, other: &CreateConversationRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreateConversationRequest
Auto Trait Implementations§
impl Freeze for CreateConversationRequest
impl RefUnwindSafe for CreateConversationRequest
impl Send for CreateConversationRequest
impl Sync for CreateConversationRequest
impl Unpin for CreateConversationRequest
impl UnsafeUnpin for CreateConversationRequest
impl UnwindSafe for CreateConversationRequest
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