From da877814844565b211040a23fdbb7ce2d1110c25 Mon Sep 17 00:00:00 2001 From: Allan Calix Date: Sun, 12 Sep 2021 14:16:13 -0700 Subject: [PATCH] Add Serialize/Deserialize to all public enums --- src/client.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client.rs b/src/client.rs index 5886e13..c6bf599 100644 --- a/src/client.rs +++ b/src/client.rs @@ -1,5 +1,6 @@ use http_client::h1::H1Client; use http_client::Error as HttpError; +use serde::{Deserialize, Serialize}; use thiserror::Error; use crate::model::*; @@ -42,7 +43,7 @@ impl From for ClientError { /// Environment controls the domain for the client, matches Plaid's sandbox, /// development, and production environments. -#[derive(Debug, Clone, PartialEq, Eq)] +#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)] pub enum Environment { /// Used to configure the client to request against a the domain in the string. /// Should be a fully qualified domain with protocol and scheme, for example