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

Method default

middleware/http-response/src/main.rs:15–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13// this implementation is optional
14impl Default for HttpData {
15 fn default() -> Self {
16 Self {
17 data: "Hello this is success response!".to_string(),
18 }
19 }
20}
21
22#[actix_web::main]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected