We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We can extend endpoint like get_name_resolve, to return a custom error struct
get_name_resolve
#[get("/name/resolve/<name>?<chain>")] pub async fn get_name_resolve( name: &str, chain: &str, name_client: &State<Mutex<NameClient>>, ) -> Result<Json<NameRecord>, NotFound<String>> { ... }
The text was updated successfully, but these errors were encountered:
https://rocket.rs/guide/v0.4/requests/#error-catchers
Sorry, something went wrong.
No branches or pull requests
We can extend endpoint like
get_name_resolve
, to return a custom error structThe text was updated successfully, but these errors were encountered: