pub trait Request: Serialize {
type Response: DeserializeOwned;
const ENDPOINT: &'static str;
}Expand description
Required Associated Constants§
Required Associated Types§
Sourcetype Response: DeserializeOwned
type Response: DeserializeOwned
Response type of this request.
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.