pub fn new<M>(code: ErrorCode, message: M) -> Self
    where
        M: Into<String>,
    {
        Error {
            code,
            message: message.into(),
        }
    }
/// Contructs a new method `Error` with given code and message.
Contructs a new method `Error` with given code and message.
Contructs a new method ` Error ` with given code and message .
pub fn new<M>(code: ErrorCode, message: M) -> Self
    where
        M: Into<String>,
    {
        Error {
            code,
            message: message.into(),
        }
    }
pub fn new < M > ( code : ErrorCode , message : M ) -> Self where M : Into < String > , { Error { code , message : message . into ( ) , } }
Contructs a new method `Error` with given code and message.
Contructs a new method ` Error ` with given code and message .
code
ErrorCode
message
M
code
ErrorCode
message
M