| 4 | |
| 5 | #[derive(Clone, PartialEq, Eq, Message)] |
| 6 | pub struct MyObj { |
| 7 | #[prost(int32, tag = "1")] |
| 8 | pub number: i32, |
| 9 | |
| 10 | #[prost(string, tag = "2")] |
| 11 | pub name: String, |
| 12 | } |
| 13 | |
| 14 | async fn index(msg: ProtoBuf<MyObj>) -> Result<HttpResponse> { |
| 15 | log::info!("model: {msg:?}"); |
nothing calls this directly
no outgoing calls
no test coverage detected