pub trait Endpoint {
type Request: Schema;
type Response: Schema;
const PATH: &'static str;
const REQ_KEY: Key;
const RESP_KEY: Key;
const REQ_KEY4: Key4 = _;
const REQ_KEY2: Key2 = _;
const REQ_KEY1: Key1 = _;
const RESP_KEY4: Key4 = _;
const RESP_KEY2: Key2 = _;
const RESP_KEY1: Key1 = _;
}
Expand description
A marker trait denoting a single endpoint
Typically used with the endpoint macro.
Required Associated Constants§
Provided Associated Constants§
Required Associated Types§
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.