pub trait GetRequest: Serialize + Debug {
type Response: TryInto<Self::Output, Error = Error> + DeserializeOwned;
type Output;
// Required method
fn endpoint(&self) -> Cow<'static, str>;
}Expand description
Represents a GET request.
Required Associated Types§
Required 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.