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

Function index

protobuf/src/main.rs:14–17  ·  view source on GitHub ↗
(msg: ProtoBuf<MyObj>)

Source from the content-addressed store, hash-verified

12}
13
14async fn index(msg: ProtoBuf<MyObj>) -> Result<HttpResponse> {
15 log::info!("model: {msg:?}");
16 HttpResponse::Ok().protobuf(msg.0) // <- send response
17}
18
19#[actix_web::main]
20async fn main() -> std::io::Result<()> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected