pub struct FileListQuery {
pub after: Option<String>,
pub purpose: Option<FilePurpose>,
pub order: Option<FileOrder>,
pub limit: Option<u32>,
}Fields§
§after: Option<String>Pagination cursor
purpose: Option<FilePurpose>Filter by file purpose (optional; matches cURL examples which may omit)
order: Option<FileOrder>Sort order (currently only created_at)
limit: Option<u32>Page size 1..=100 (default 20)
Implementations§
Source§impl FileListQuery
impl FileListQuery
pub fn new() -> Self
pub fn with_after(self, after: impl Into<String>) -> Self
pub fn with_purpose(self, p: FilePurpose) -> Self
pub fn with_order(self, o: FileOrder) -> Self
pub fn with_limit(self, limit: u32) -> Self
Trait Implementations§
Source§impl Clone for FileListQuery
impl Clone for FileListQuery
Source§fn clone(&self) -> FileListQuery
fn clone(&self) -> FileListQuery
Returns a duplicate of the value. Read more
1.0.0 · 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 FileListQuery
impl Debug for FileListQuery
Source§impl Serialize for FileListQuery
impl Serialize for FileListQuery
Source§impl Validate for FileListQuery
impl Validate for FileListQuery
Source§impl<'v_a> ValidateArgs<'v_a> for FileListQuery
impl<'v_a> ValidateArgs<'v_a> for FileListQuery
Auto Trait Implementations§
impl Freeze for FileListQuery
impl RefUnwindSafe for FileListQuery
impl Send for FileListQuery
impl Sync for FileListQuery
impl Unpin for FileListQuery
impl UnwindSafe for FileListQuery
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