pub struct FileListQuery { /* private fields */ }Expand description
Query parameters for listing files.
Implementations§
Source§impl FileListQuery
impl FileListQuery
Sourcepub fn new(purpose: FileListPurpose) -> Self
pub fn new(purpose: FileListPurpose) -> Self
Create a query with the required purpose filter.
Sourcepub fn with_after(self, after: impl Into<String>) -> Self
pub fn with_after(self, after: impl Into<String>) -> Self
Set the pagination cursor.
Sourcepub fn with_order(self, o: FileOrder) -> Self
pub fn with_order(self, o: FileOrder) -> Self
Set the sort order.
Sourcepub fn with_limit(self, limit: u32) -> Self
pub fn with_limit(self, limit: u32) -> Self
Set the page size (1..=100).
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 (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 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 UnsafeUnpin 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