pub trait HateoasResource {
const KIND: &'static str;
const VERSION: &'static str;
const GROUP: &'static str;
const URL_PATH_SEGMENT: &'static str;
}Required Associated Constants§
Sourceconst GROUP: &'static str
const GROUP: &'static str
What group this resource belongs under. This is usually same as the app domain or package domain.
Sourceconst URL_PATH_SEGMENT: &'static str
const URL_PATH_SEGMENT: &'static str
This is the current groups/resource url endpoint, this allows for different endpoints for each type/group/version. an endpoint could be generated as follows: /[Group]/[Version]/[URL_PATH_SEGMENT]
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.