pub struct ListFilesQuery {
pub purpose: Option<String>,
pub limit: Option<u32>,
pub order: Option<ListFilesOrder>,
pub after: Option<String>,
}Available on crate feature
file-types only.Expand description
Query parameters for listing files.
Fields§
§purpose: Option<String>Only return files with the given purpose.
limit: Option<u32>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<ListFilesOrder>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.
Trait Implementations§
Source§impl Clone for ListFilesQuery
impl Clone for ListFilesQuery
Source§fn clone(&self) -> ListFilesQuery
fn clone(&self) -> ListFilesQuery
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 ListFilesQuery
impl Debug for ListFilesQuery
Source§impl Default for ListFilesQuery
impl Default for ListFilesQuery
Source§fn default() -> ListFilesQuery
fn default() -> ListFilesQuery
Returns the “default value” for a type. Read more
Source§impl PartialEq for ListFilesQuery
impl PartialEq for ListFilesQuery
Source§impl Serialize for ListFilesQuery
impl Serialize for ListFilesQuery
impl StructuralPartialEq for ListFilesQuery
Auto Trait Implementations§
impl Freeze for ListFilesQuery
impl RefUnwindSafe for ListFilesQuery
impl Send for ListFilesQuery
impl Sync for ListFilesQuery
impl Unpin for ListFilesQuery
impl UnsafeUnpin for ListFilesQuery
impl UnwindSafe for ListFilesQuery
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