Merge pull request #304 from AurelienFT/eq_error

Derive Error with Eq
This commit is contained in:
Sunli 2020-10-09 09:35:20 +08:00 committed by GitHub
commit 7fe59d9f90

View File

@ -147,7 +147,7 @@ impl<T: InputValueType, E: Display> From<E> for InputValueError<T> {
pub type InputValueResult<T> = Result<T, InputValueError<T>>;
/// An error with a message and optional extensions.
#[derive(Debug, Clone, Serialize)]
#[derive(Debug, Clone, PartialEq, Eq, Serialize)]
pub struct Error {
/// The error message.
pub message: String,