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

Function create_something

json/json-validation/src/main.rs:65–74  ·  view source on GitHub ↗
(
    some_data: web::Json<SomeData>,
    client: web::Data<Client>,
)

Source from the content-addressed store, hash-verified

63}
64
65async fn create_something(
66 some_data: web::Json<SomeData>,
67 client: web::Data<Client>,
68) -> Result<HttpResponse, Error> {
69 let some_data_2 = step_x(some_data.into_inner(), &client).await?;
70 let some_data_3 = step_x(some_data_2, &client).await?;
71 let d = step_x(some_data_3, &client).await?;
72
73 Ok(HttpResponse::Ok().json(d))
74}
75
76#[actix_web::main]
77async fn main() -> io::Result<()> {

Callers

nothing calls this directly

Calls 1

step_xFunction · 0.85

Tested by

no test coverage detected