pub trait AirLabsRequest: Serialize {
type Response: DeserializeOwned;
type ResponseFree: DeserializeOwned;
const METHOD: &'static str;
// Provided method
fn url(&self, base: &str) -> String { ... }
}
Expand description
For the AirLabs API request structure (that is serializable into query parameters) this trait captures the shape of the response, both its regular and free versions.
Required Associated Constants§
Required Associated Types§
Sourcetype Response: DeserializeOwned
type Response: DeserializeOwned
The shape of the regular response.
Sourcetype ResponseFree: DeserializeOwned
type ResponseFree: DeserializeOwned
The shape of the free response.
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.