Skip to content

Instantly share code, notes, and snippets.

@trimoq
Created October 21, 2019 09:07
Show Gist options
  • Save trimoq/50b4f6eea0c73ca05d182bbb5e95a325 to your computer and use it in GitHub Desktop.
Save trimoq/50b4f6eea0c73ca05d182bbb5e95a325 to your computer and use it in GitHub Desktop.
posting a Stay object
#[put("/stay/<id>", format = "json", data = "<new_stay>")]
fn stay_update(id: i32, new_stay: Json<Stay> ) -> Result<...> {
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment