pub struct ListFilesParams {
pub purpose: Option<String>,
pub limit: Option<i64>,
pub order: Option<ListFilesParamsOrder>,
pub after: Option<String>,
}
Fields§
§purpose: Option<String>
Only return files with the given purpose.
limit: Option<i64>
A limit on the number of objects to be returned. Limit can range between 1 and 10,000, and the default is 10,000.
order: Option<ListFilesParamsOrder>
Sort order by the created_at
timestamp of the objects. asc
for ascending order and desc
for descending order.
after: Option<String>
A cursor for use in pagination. 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 after=obj_foo in order to fetch the next page of the list.
Implementations§
Source§impl ListFilesParams
impl ListFilesParams
Sourcepub fn builder() -> ListFilesParamsBuilder<((), (), (), ())>
pub fn builder() -> ListFilesParamsBuilder<((), (), (), ())>
Create a builder for building ListFilesParams
.
On the builder, call .purpose(...)
(optional), .limit(...)
(optional), .order(...)
(optional), .after(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of ListFilesParams
.
Trait Implementations§
Source§impl Clone for ListFilesParams
impl Clone for ListFilesParams
Source§fn clone(&self) -> ListFilesParams
fn clone(&self) -> ListFilesParams
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read more