Skip to content

Instantly share code, notes, and snippets.

@tbg
Created May 31, 2015 16:20
Show Gist options
  • Save tbg/711067ffc484f03dc589 to your computer and use it in GitHub Desktop.
Save tbg/711067ffc484f03dc589 to your computer and use it in GitHub Desktop.
impl Request for ::api::PutRequest {
fn create_reply(&self) -> Box<Response> {
Box::new(::api::PutResponse::new()) as Box<Response>
}
}
// impl_request([::api::PutRequest, ::api::PutResponse], [::api::GetRequest, ::api::GetResponse], ...)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment