pub trait EndpointSpec {
type Req: Serialize;
type Resp: DeserializeOwned;
const PATH: &'static str;
const METHOD: Method = Method::POST;
}Required Associated Constants§
Provided Associated Constants§
Required Associated Types§
Sourcetype Resp: DeserializeOwned
type Resp: DeserializeOwned
Typed payload you expect back on success
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.