pub struct FileListRequest { /* private fields */ }Expand description
Files list request (GET /paas/v4/files)
Builds query parameters from FileListQuery and performs an authenticated
GET.
Implementations§
Source§impl FileListRequest
impl FileListRequest
Sourcepub fn new(purpose: FileListPurpose) -> Self
pub fn new(purpose: FileListPurpose) -> Self
Create a new file-list request with its required purpose filter.
Sourcepub fn with_query(self, q: FileListQuery) -> Self
pub fn with_query(self, q: FileListQuery) -> Self
Replace the query parameters.
Sourcepub async fn send_via(&self, client: &ZaiClient) -> ZaiResult<FileListResponse>
pub async fn send_via(&self, client: &ZaiClient) -> ZaiResult<FileListResponse>
Validate the configured query, send it, and parse the typed response.
Auto Trait Implementations§
impl Freeze for FileListRequest
impl RefUnwindSafe for FileListRequest
impl Send for FileListRequest
impl Sync for FileListRequest
impl Unpin for FileListRequest
impl UnsafeUnpin for FileListRequest
impl UnwindSafe for FileListRequest
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