Skip to content

Commit

Permalink
Add Serialize/Deserialize to all public enums
Browse files Browse the repository at this point in the history
  • Loading branch information
allancalix committed Sep 12, 2021
1 parent 1a4f400 commit da87781
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/client.rs
Original file line number Diff line number Diff line change
@@ -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::*;
Expand Down Expand Up @@ -42,7 +43,7 @@ impl From<HttpError> 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
Expand Down

0 comments on commit da87781

Please sign in to comment.