[][src]Trait gotham_restful::ResourceRead

pub trait ResourceRead<ID, R: ResourceResult> where
    ID: DeserializeOwned + Clone + RefUnwindSafe + Send + Sync + 'static, 
{ fn read(state: &mut State, id: ID) -> R; }

Handle a GET request on the Resource with an id.

Required methods

fn read(state: &mut State, id: ID) -> R

Loading content...

Implementors

Loading content...