pub trait GetBinary:
Get
+ Sync
+ Send {
// Provided method
fn get_response_bytes(
&self,
client: &Client,
base_url: &str,
options: &RequestOptions,
) -> impl Future<Output = Result<Vec<u8>, OapiError>> + Send + Sync { ... }
}Expand description
Trait for GET requests whose response body is binary rather than JSON.
Endpoints such as GET /files/{file_id}/content return the raw file
contents instead of a JSON object, so the body is returned as raw bytes.
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".