Created
October 21, 2019 09:07
-
-
Save trimoq/50b4f6eea0c73ca05d182bbb5e95a325 to your computer and use it in GitHub Desktop.
posting a Stay object
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
#[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