pub const fn message(&self) -> &'static str {
        match self {
            ErrorCode::ParseError => "Parse error",
            ErrorCode::InvalidRequest => "Invalid Request",
            ErrorCode::MethodNotFound => "Method not found",
            ErrorCode::InvalidParams => "Invalid params",
            ErrorCode::InternalError => "Internal error",
            ErrorCode::ServerError(_) => "Server error",
        }
    }
///Returns textual representation of the code.
Returns textual representation of the code.
Returns textual representation of the code .
pub const fn message(&self) -> &'static str {
        match self {
            ErrorCode::ParseError => "Parse error",
            ErrorCode::InvalidRequest => "Invalid Request",
            ErrorCode::MethodNotFound => "Method not found",
            ErrorCode::InvalidParams => "Invalid params",
            ErrorCode::InternalError => "Internal error",
            ErrorCode::ServerError(_) => "Server error",
        }
    }
pub const fn message ( & self ) -> & ' static str { match self { ErrorCode :: ParseError => " " , ErrorCode :: InvalidRequest => " " , ErrorCode :: MethodNotFound => " " , ErrorCode :: InvalidParams => " " , ErrorCode :: InternalError => " " , ErrorCode :: ServerError ( _ ) => " " , } }
Returns textual representation of the code.
Returns textual representation of the code .
&self
&self