pub trait REST: Serialize + DeserializeOwned {
type Index;
// Required method
fn path() -> String;
}Expand description
Denotes a payload that is accessed with a REST API.
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.