Created
May 31, 2015 16:20
-
-
Save tbg/711067ffc484f03dc589 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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