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

Method new

json/jsonrpc/src/convention.rs:30–36  ·  view source on GitHub ↗
(code: i32, message: &str)

Source from the content-addressed store, hash-verified

28
29impl ErrorData {
30 pub fn new(code: i32, message: &str) -> Self {
31 Self {
32 code,
33 message: String::from(message),
34 data: Value::Null,
35 }
36 }
37
38 pub fn std(code: i32) -> Self {
39 match code {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected