Skip to content

Commit

Permalink
fix: add deserialize for evm
Browse files Browse the repository at this point in the history
  • Loading branch information
dbcfd committed Sep 28, 2023
1 parent be4b848 commit a06ab1c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/query.rs
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -40,7 +40,7 @@ impl From<f32> for NumberFilter {
}

/// Valid values for operation Filter
#[derive(Clone, Debug, Serialize)]
#[derive(Clone, Debug, Deserialize, Serialize)]
#[serde(untagged)]
pub enum ValueFilter {
/// String value
Expand Down Expand Up @@ -86,7 +86,7 @@ impl From<f32> for ValueFilter {
}

/// Valid values for operation Filter
#[derive(Clone, Debug, Serialize)]
#[derive(Clone, Debug, Deserialize, Serialize)]
#[serde(untagged)]
pub enum EqualValueFilter {
/// Boolean value
Expand Down Expand Up @@ -138,7 +138,7 @@ impl From<f32> 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
Expand All @@ -162,7 +162,7 @@ pub enum OperationFilter {
}

/// Combination query
#[derive(Clone, Debug, Serialize)]
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct CombinationQuery(Vec<FilterQuery>);

impl CombinationQuery {
Expand All @@ -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")]
Expand Down

0 comments on commit a06ab1c

Please sign in to comment.