macro_rules! impl_from_body_via_serde {
($t:ty) => { ... };
}Expand description
Implements FromBody for a type that implements serde::de::DeserializeOwned.
ยงExample
use camel_api::{impl_from_body_via_serde, FromBody};
use serde::Deserialize;
#[derive(Deserialize)]
struct Order { id: u64 }
impl_from_body_via_serde!(Order);