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

Class MyObj

json/json/src/main.rs:5–8  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3
4#[derive(Debug, Serialize, Deserialize)]
5struct MyObj {
6 name: String,
7 number: i32,
8}
9
10/// This handler uses json extractor
11async fn index(item: web::Json<MyObj>) -> HttpResponse {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected