From a06ab1c076c6e77f81a05fe9ec3136e395b56b37 Mon Sep 17 00:00:00 2001 From: Danny Browning Date: Wed, 27 Sep 2023 21:37:43 -0600 Subject: [PATCH] fix: add deserialize for evm --- src/query.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/query.rs b/src/query.rs index 2fed8a5..211016e 100644 --- a/src/query.rs +++ b/src/query.rs @@ -1,8 +1,8 @@ -use serde::Serialize; +use serde::{Deserialize, Serialize}; use std::collections::HashMap; /// Valid values for operation Filter -#[derive(Clone, Debug, Serialize)] +#[derive(Clone, Debug, Deserialize, Serialize)] #[serde(untagged)] pub enum NumberFilter { /// I64 Value @@ -40,7 +40,7 @@ impl From for NumberFilter { } /// Valid values for operation Filter -#[derive(Clone, Debug, Serialize)] +#[derive(Clone, Debug, Deserialize, Serialize)] #[serde(untagged)] pub enum ValueFilter { /// String value @@ -86,7 +86,7 @@ impl From for ValueFilter { } /// Valid values for operation Filter -#[derive(Clone, Debug, Serialize)] +#[derive(Clone, Debug, Deserialize, Serialize)] #[serde(untagged)] pub enum EqualValueFilter { /// Boolean value @@ -138,7 +138,7 @@ impl From for EqualValueFilter { } /// Operation Filter -#[derive(Clone, Debug, Serialize)] +#[derive(Clone, Debug, Deserialize, Serialize)] #[serde(rename_all = "camelCase")] pub enum OperationFilter { /// Filter by null or not null @@ -162,7 +162,7 @@ pub enum OperationFilter { } /// Combination query -#[derive(Clone, Debug, Serialize)] +#[derive(Clone, Debug, Deserialize, Serialize)] pub struct CombinationQuery(Vec); impl CombinationQuery { @@ -189,7 +189,7 @@ macro_rules! or { } /// Filter Query -#[derive(Clone, Debug, Serialize)] +#[derive(Clone, Debug, Deserialize, Serialize)] pub enum FilterQuery { /// Filter by where #[serde(rename = "where")]