Skip to content

Commit

Permalink
Add derive Copy for few enum (#68)
Browse files Browse the repository at this point in the history
* Add derive Copy for few enum

* undo edit

---------

Co-authored-by: Adam Leventhal <[email protected]>
Co-authored-by: Adam Leventhal <[email protected]>
  • Loading branch information
3 people authored Oct 20, 2023
1 parent 31230cb commit dfe02f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ pub struct BooleanType {
pub enumeration: Vec<Option<bool>>,
}

#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
#[derive(Debug, Clone, Copy, Serialize, Deserialize, PartialEq)]
#[serde(rename_all = "lowercase")]
pub enum NumberFormat {
Float,
Expand All @@ -242,7 +242,7 @@ impl FromStr for NumberFormat {
}
}

#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
#[derive(Debug, Clone, Copy, Serialize, Deserialize, PartialEq)]
#[serde(rename_all = "lowercase")]
pub enum IntegerFormat {
Int32,
Expand All @@ -261,7 +261,7 @@ impl FromStr for IntegerFormat {
}
}

#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
#[derive(Debug, Clone, Copy, Serialize, Deserialize, PartialEq)]
#[serde(rename_all = "kebab-case")]
pub enum StringFormat {
Date,
Expand Down

0 comments on commit dfe02f7

Please sign in to comment.