macro_rules! impl_put {
($name:ident, $put_json:ty, $get_json:ty, $url:expr) => { ... };
}Expand description
UI macro: implements a method to send a PUT request.
Given a name, this macro implements a put_name method that sends a
PUT request to a url. The response of the PUT is then parsed as JSON,
and the resulting Rust value is returned.
The patch method signature is async fn put_name(&self, json: &$request_json) -> Result<$get_json, RequestError>.
This macro is very similar to impl_patch. See its documentation for an
example.