Juuuuust need a bit more time. Hopefully tomorrow!
-
-
-
Anyway, the cool thing I got working today: Response::new(200) .body_json(/* struct */) Is how to create a 200 Ok with a json body.
Show this thread -
Wondering if we could add the following bound: impl<T: Serialize> IntoResponse for T; Which would allow returning structs as-is from APIs. Though I believe Serialize is already implemented for String, so it wouldn't work. Perhaps tho!
Show this thread
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.