[][src]Trait gotham_restful::ResourceUpdate

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.

Required methods

fn update(state: &mut State, id: ID, body: Body) -> R

Loading content...

Implementors

Loading content...