MCPcopy Create free account
hub / github.com/Rust-Web-Development/code / APILayerError

Class APILayerError

ch_08/handle-errors/src/lib.rs:24–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22
23#[derive(Debug, Clone)]
24pub struct APILayerError {
25 pub status: u16,
26 pub message: String,
27}
28
29impl std::fmt::Display for APILayerError {
30 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected