pub struct ListFilesInVectorStoreBatchQueryArgs { /* private fields */ }Available on crate feature
vectorstore-types only.Expand description
Builder for ListFilesInVectorStoreBatchQuery.
Implementations§
Source§impl ListFilesInVectorStoreBatchQueryArgs
impl ListFilesInVectorStoreBatchQueryArgs
Sourcepub fn limit<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
pub fn limit<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.
Sourcepub fn order<VALUE: Into<ListFilesInVectorStoreBatchOrder>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn order<VALUE: Into<ListFilesInVectorStoreBatchOrder>>( &mut self, value: VALUE, ) -> &mut Self
Sort order by the created_at timestamp of the objects. asc for ascending order and
desc for descending order.
Sourcepub fn after<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn after<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
A cursor for use in pagination. after is an object ID that defines your place in the
list.
Sourcepub fn before<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn before<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
A cursor for use in pagination. before is an object ID that defines your place in the
list.
Sourcepub fn filter<VALUE: Into<ListFilesInVectorStoreBatchFilter>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn filter<VALUE: Into<ListFilesInVectorStoreBatchFilter>>( &mut self, value: VALUE, ) -> &mut Self
Filter by file status. One of in_progress, completed, failed, cancelled.
Sourcepub fn build(&self) -> Result<ListFilesInVectorStoreBatchQuery, OpenAIError>
pub fn build(&self) -> Result<ListFilesInVectorStoreBatchQuery, OpenAIError>
Builds a new ListFilesInVectorStoreBatchQuery.
§Errors
If a required field has not been initialized.
Trait Implementations§
Source§impl Clone for ListFilesInVectorStoreBatchQueryArgs
impl Clone for ListFilesInVectorStoreBatchQueryArgs
Source§fn clone(&self) -> ListFilesInVectorStoreBatchQueryArgs
fn clone(&self) -> ListFilesInVectorStoreBatchQueryArgs
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 Freeze for ListFilesInVectorStoreBatchQueryArgs
impl RefUnwindSafe for ListFilesInVectorStoreBatchQueryArgs
impl Send for ListFilesInVectorStoreBatchQueryArgs
impl Sync for ListFilesInVectorStoreBatchQueryArgs
impl Unpin for ListFilesInVectorStoreBatchQueryArgs
impl UnsafeUnpin for ListFilesInVectorStoreBatchQueryArgs
impl UnwindSafe for ListFilesInVectorStoreBatchQueryArgs
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