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

Method from

auth/simple-auth-server/src/errors.rs:34–36  ·  view source on GitHub ↗
(_: ParseError)

Source from the content-addressed store, hash-verified

32// and provide a custom message
33impl From<ParseError> for ServiceError {
34 fn from(_: ParseError) -> ServiceError {
35 ServiceError::BadRequest("Invalid UUID".into())
36 }
37}
38
39impl From<DBError> for ServiceError {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected