grpc_gateway 0.1.5

A GRPC Gateway which handle the http request and convert into GRPC
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::error::Error;
use std::fmt::Display;

#[derive(Debug)]
pub struct ValidationError(pub String);

impl Display for ValidationError {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        write!(f, "{}", self.0)
    }
}

impl Error for ValidationError {}