Makes proto messages derive serde so they can be reused as requests / responses for the API. WIth that, all custom messages created for api::http are not needed anymore and can be therefore removed.
Reworks ApiError and make rejection functions actually return a rejection (and therefor Err). Also revamps api::htto::handle_rejection so uncatch rejections can be passed through (which was the original intention, I just couldn't figure out how to do so).
Finally, adds serialization functions for the things need custom serde, like vector of locators (Vec<Vec> -> Vec) and appointment status. The later is due to how tonic deals with enums internally.
Makes proto messages derive serde so they can be reused as requests / responses for the API. WIth that, all custom messages created for
api::http
are not needed anymore and can be therefore removed.Reworks ApiError and make rejection functions actually return a rejection (and therefor Err). Also revamps
api::htto::handle_rejection
so uncatch rejections can be passed through (which was the original intention, I just couldn't figure out how to do so).Finally, adds serialization functions for the things need custom serde, like vector of locators (Vec<Vec> -> Vec) and appointment status. The later is due to how tonic deals with enums internally.