Skip to main content

Linkable

Trait Linkable 

Source
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§

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.

Implementors§

Source§

impl<T> Linkable for T
where T: Serialize,