pub struct ListFilesQueryArgs { /* private fields */ }Available on crate feature
file-types only.Expand description
Builder for ListFilesQuery.
Implementations§
Source§impl ListFilesQueryArgs
impl ListFilesQueryArgs
Sourcepub fn purpose<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn purpose<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Only return files with the given purpose.
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 10,000, and the default is 10,000.
Sourcepub fn order<VALUE: Into<ListFilesOrder>>(&mut self, value: VALUE) -> &mut Self
pub fn order<VALUE: Into<ListFilesOrder>>(&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 build(&self) -> Result<ListFilesQuery, OpenAIError>
pub fn build(&self) -> Result<ListFilesQuery, OpenAIError>
Trait Implementations§
Source§impl Clone for ListFilesQueryArgs
impl Clone for ListFilesQueryArgs
Source§fn clone(&self) -> ListFilesQueryArgs
fn clone(&self) -> ListFilesQueryArgs
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 ListFilesQueryArgs
impl Debug for ListFilesQueryArgs
Auto Trait Implementations§
impl Freeze for ListFilesQueryArgs
impl RefUnwindSafe for ListFilesQueryArgs
impl Send for ListFilesQueryArgs
impl Sync for ListFilesQueryArgs
impl Unpin for ListFilesQueryArgs
impl UnsafeUnpin for ListFilesQueryArgs
impl UnwindSafe for ListFilesQueryArgs
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