Trait ResourceUpdate
gotham_restful
pub trait ResourceUpdate<ID, Body: RequestBody, R: ResourceResult> where ID: DeserializeOwned + Clone + RefUnwindSafe + Send + Sync + 'static, { fn update(state: &mut State, id: ID, body: Body) -> R; }
Handle a PUT request on the Resource with an id.
fn update(state: &mut State, id: ID, body: Body) -> R