MCPcopy Create free account
hub / github.com/ddimaria/rust-blockchain-tutorial / from

Method from

web3/src/error.rs:34–36  ·  view source on GitHub ↗
(error: serde_json::Error)

Source from the content-addressed store, hash-verified

32/// Generically convert serde errors to Web3Error::JsonParseError
33impl From<serde_json::Error> for Web3Error {
34 fn from(error: serde_json::Error) -> Self {
35 Web3Error::JsonParseError(error.to_string())
36 }
37}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected