1#[macro_export] 2macro_rules! response_from_for { 3 ($from:ty => $to:ty) => { 4 impl From<$from> for $to { 5 fn from(value: $from) -> Self { 6 let mut resp = Self::default(); 7 resp.set_body(value.into()); 8 resp 9 } 10 } 11 }; 12}