pub struct ListFiles<'a> {
pub created: Option<RangeQuery<Timestamp>>,
pub ending_before: Option<FileId>,
pub expand: &'a [&'a str],
pub limit: Option<u64>,
pub purpose: Option<FilePurpose>,
pub starting_after: Option<FileId>,
}
Expand description
The parameters for File::list
.
Fields§
§created: Option<RangeQuery<Timestamp>>
§ending_before: Option<FileId>
A cursor for use in pagination.
ending_before
is an object ID that defines your place in the list.
For instance, if you make a list request and receive 100 objects, starting with obj_bar
, your subsequent call can include ending_before=obj_bar
in order to fetch the previous page of the list.
expand: &'a [&'a str]
Specifies which fields in the response should be expanded.
limit: Option<u64>
A limit on the number of objects to be returned.
Limit can range between 1 and 100, and the default is 10.
purpose: Option<FilePurpose>
Filter queries by the file purpose.
If you don’t provide a purpose, the queries return unfiltered files.
starting_after: Option<FileId>
A cursor for use in pagination.
starting_after
is an object ID that defines your place in the list.
For instance, if you make a list request and receive 100 objects, ending with obj_foo
, your subsequent call can include starting_after=obj_foo
in order to fetch the next page of the list.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ListFiles<'a>
impl<'a> RefUnwindSafe for ListFiles<'a>
impl<'a> Send for ListFiles<'a>
impl<'a> Sync for ListFiles<'a>
impl<'a> Unpin for ListFiles<'a>
impl<'a> UnwindSafe for ListFiles<'a>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)