pub fn new<M>(status_code: u16, error_code: ErrorCode, message: M) -> Self
    where
        M: Into<String>,
    {
        Error {
            status_code,
            error_code,
            message: message.into(),
        }
    }
/// Creates a new `Error` with the given status code, error code and
/// message.
Creates a new `Error` with the given status code, error code and
message.
Creates a new ` Error ` with the given status code error code and message .
pub fn new<M>(status_code: u16, error_code: ErrorCode, message: M) -> Self
    where
        M: Into<String>,
    {
        Error {
            status_code,
            error_code,
            message: message.into(),
        }
    }
pub fn new < M > ( status_code : u16 , error_code : ErrorCode , message : M ) -> Self where M : Into < String > , { Error { status_code , error_code , message : message . into ( ) , } }
Creates a new `Error` with the given status code, error code and
message.
Creates a new ` Error ` with the given status code error code and message .
status_code
u16
error_code
ErrorCode
message
M
status_code
u16
error_code
ErrorCode
message
M