pub struct VectorStoreFileBatchesResource { /* private fields */ }Expand description
EN: Vector Store File Batches API resource. 中文:Vector Store File Batches API 资源。
Implementations§
Source§impl VectorStoreFileBatchesResource
impl VectorStoreFileBatchesResource
Sourcepub async fn create(
&self,
request: CreateVectorStoreFileBatchRequest,
) -> Result<VectorStoreFileBatch, LingerError>
pub async fn create( &self, request: CreateVectorStoreFileBatchRequest, ) -> Result<VectorStoreFileBatch, LingerError>
EN: Creates a file batch with POST /v1/vector_stores/{vector_store_id}/file_batches.
中文:使用 POST /v1/vector_stores/{vector_store_id}/file_batches 创建文件批量。
Sourcepub async fn retrieve(
&self,
batch_id: &str,
) -> Result<VectorStoreFileBatch, LingerError>
pub async fn retrieve( &self, batch_id: &str, ) -> Result<VectorStoreFileBatch, LingerError>
EN: Retrieves a vector store file batch. 中文:获取向量存储文件批量。
Sourcepub async fn cancel(
&self,
batch_id: &str,
) -> Result<VectorStoreFileBatch, LingerError>
pub async fn cancel( &self, batch_id: &str, ) -> Result<VectorStoreFileBatch, LingerError>
EN: Cancels a vector store file batch. 中文:取消向量存储文件批量。
Sourcepub async fn list_files(
&self,
batch_id: &str,
) -> Result<VectorStoreFilePage, LingerError>
pub async fn list_files( &self, batch_id: &str, ) -> Result<VectorStoreFilePage, LingerError>
EN: Lists files in a vector store file batch. 中文:列出向量存储文件批量中的文件。
Trait Implementations§
Source§impl Clone for VectorStoreFileBatchesResource
impl Clone for VectorStoreFileBatchesResource
Source§fn clone(&self) -> VectorStoreFileBatchesResource
fn clone(&self) -> VectorStoreFileBatchesResource
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for VectorStoreFileBatchesResource
impl !UnwindSafe for VectorStoreFileBatchesResource
impl Freeze for VectorStoreFileBatchesResource
impl Send for VectorStoreFileBatchesResource
impl Sync for VectorStoreFileBatchesResource
impl Unpin for VectorStoreFileBatchesResource
impl UnsafeUnpin for VectorStoreFileBatchesResource
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