Skip to main content

GetRenderable

Trait GetRenderable 

Source
pub trait GetRenderable {
    type Get;

    // Provided method
    fn get(&mut self) -> Result<Self::Get, Error> { ... }
}
Expand description

Subset of TypeRenderable that handles the GET method.

Required Associated Types§

Source

type Get

Output type of the get() method, serialized into the response payload.

Provided Methods§

Source

fn get(&mut self) -> Result<Self::Get, Error>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§