Trait ResourceRead
gotham_restful
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.
fn read(state: &mut State, id: ID) -> R