#[non_exhaustive]pub struct CreateVectorStoreFileRequest {
pub file_id: String,
pub extra: BTreeMap<String, Value>,
}Expand description
EN: Request body for POST /v1/vector_stores/{vector_store_id}/files.
中文:POST /v1/vector_stores/{vector_store_id}/files 的请求体。
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.file_id: StringEN: File id to attach to the vector store. 中文:要附加到向量存储的文件 ID。
extra: BTreeMap<String, Value>EN: Forward-compatible optional fields not yet covered by handwritten types. 中文:手写类型尚未覆盖的前向兼容可选字段。
Implementations§
Source§impl CreateVectorStoreFileRequest
impl CreateVectorStoreFileRequest
Sourcepub fn builder() -> CreateVectorStoreFileRequestBuilder
pub fn builder() -> CreateVectorStoreFileRequestBuilder
EN: Starts building a vector store file request. 中文:开始构建向量存储文件请求。
Trait Implementations§
Source§impl Clone for CreateVectorStoreFileRequest
impl Clone for CreateVectorStoreFileRequest
Source§fn clone(&self) -> CreateVectorStoreFileRequest
fn clone(&self) -> CreateVectorStoreFileRequest
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 CreateVectorStoreFileRequest
impl Debug for CreateVectorStoreFileRequest
Source§impl PartialEq for CreateVectorStoreFileRequest
impl PartialEq for CreateVectorStoreFileRequest
Source§fn eq(&self, other: &CreateVectorStoreFileRequest) -> bool
fn eq(&self, other: &CreateVectorStoreFileRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreateVectorStoreFileRequest
Auto Trait Implementations§
impl Freeze for CreateVectorStoreFileRequest
impl RefUnwindSafe for CreateVectorStoreFileRequest
impl Send for CreateVectorStoreFileRequest
impl Sync for CreateVectorStoreFileRequest
impl Unpin for CreateVectorStoreFileRequest
impl UnsafeUnpin for CreateVectorStoreFileRequest
impl UnwindSafe for CreateVectorStoreFileRequest
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