pub trait Linkable: Sized + Serialize {
// Provided method
fn with_links(self) -> Resource<Self> { ... }
}Expand description
Helper trait for adding HATEOAS links to any type
Provided Methods§
Sourcefn with_links(self) -> Resource<Self>
fn with_links(self) -> Resource<Self>
Wrap this value in a Resource with HATEOAS links
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.