pub struct FileListRequest {
pub key: String,
/* private fields */
}Expand description
Files list request (GET /paas/v4/files)
Builds query parameters from FileListQuery and performs an authenticated
GET.
Fields§
§key: StringImplementations§
Source§impl FileListRequest
impl FileListRequest
pub fn new(key: String) -> Self
pub fn with_query(self, q: FileListQuery) -> Self
Sourcepub async fn send(&self) -> ZaiResult<FileListResponse>
pub async fn send(&self) -> ZaiResult<FileListResponse>
Send request and parse typed response.
Sourcepub async fn send_with_query(
self,
q: &FileListQuery,
) -> ZaiResult<FileListResponse>
pub async fn send_with_query( self, q: &FileListQuery, ) -> ZaiResult<FileListResponse>
Validate query, rebuild URL and send in one call.
Trait Implementations§
Source§impl HttpClient for FileListRequest
impl HttpClient for FileListRequest
type Body = ()
type ApiUrl = String
type ApiKey = String
fn api_url(&self) -> &Self::ApiUrl
fn api_key(&self) -> &Self::ApiKey
fn body(&self) -> &Self::Body
Source§fn http_config(&self) -> Arc<HttpClientConfig>
fn http_config(&self) -> Arc<HttpClientConfig>
Get HTTP client configuration for this request Read more
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