pub struct FileContentRequest {
pub key: String,
/* private fields */
}Expand description
File content request (GET /paas/v4/files/{file_id}/content)
Fields§
§key: StringImplementations§
Source§impl FileContentRequest
impl FileContentRequest
pub fn new(key: String, file_id: impl Into<String>) -> Self
pub fn with_base_url(self, base_url: impl Into<String>) -> Self
pub fn with_endpoint_config(self, endpoint_config: EndpointConfig) -> Self
pub fn with_http_config(self, config: HttpClientConfig) -> Self
Trait Implementations§
Source§impl HttpClient for FileContentRequest
impl HttpClient for FileContentRequest
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
Source§fn post(&self) -> impl Future<Output = ZaiResult<Response>> + Send
fn post(&self) -> impl Future<Output = ZaiResult<Response>> + Send
Sends a POST request to the API endpoint. Read more
Source§fn get(&self) -> impl Future<Output = ZaiResult<Response>> + Send
fn get(&self) -> impl Future<Output = ZaiResult<Response>> + Send
Sends a GET request to the API endpoint. Read more
Auto Trait Implementations§
impl Freeze for FileContentRequest
impl RefUnwindSafe for FileContentRequest
impl Send for FileContentRequest
impl Sync for FileContentRequest
impl Unpin for FileContentRequest
impl UnsafeUnpin for FileContentRequest
impl UnwindSafe for FileContentRequest
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