pub trait GetNoStream:
Get
+ Sync
+ Send {
type Response: DeserializeOwned + FromStr<Err = OapiError> + Send + Sync;
// Provided methods
fn get_response_string(
&self,
client: &Client,
base_url: &str,
options: &RequestOptions,
) -> impl Future<Output = Result<String, OapiError>> + Send + Sync { ... }
fn get_response(
&self,
client: &Client,
base_url: &str,
options: &RequestOptions,
) -> impl Future<Output = Result<Self::Response, OapiError>> + Send + Sync { ... }
}Expand description
Trait for non-streaming GET requests
Required Associated Types§
Provided Methods§
Sourcefn get_response_string(
&self,
client: &Client,
base_url: &str,
options: &RequestOptions,
) -> impl Future<Output = Result<String, OapiError>> + Send + Sync
fn get_response_string( &self, client: &Client, base_url: &str, options: &RequestOptions, ) -> impl Future<Output = Result<String, OapiError>> + Send + Sync
Sends a GET request and returns the raw response body.
The client is supplied by the caller; see crate::rest::default_client
for a sensible default.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".