MCPcopy Create free account
hub / github.com/actix/examples / MyObj

Class MyObj

protobuf/src/main.rs:6–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected