Skip to content

Commit

Permalink
Mark new enums as non-exhaustive
Browse files Browse the repository at this point in the history
  • Loading branch information
divergentdave committed Jul 19, 2024
1 parent e11f58d commit 42a1574
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/src/dp_strategy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use serde::{Deserialize, Serialize};

#[derive(Serialize, Deserialize, Debug, Clone, Eq, PartialEq, Default)]
#[serde(tag = "dp_strategy")]
#[non_exhaustive]
pub enum Prio3Histogram {
#[default]
NoDifferentialPrivacy,
Expand All @@ -12,6 +13,7 @@ pub enum Prio3Histogram {

#[derive(Serialize, Deserialize, Debug, Clone, Eq, PartialEq, Default)]
#[serde(tag = "dp_strategy")]
#[non_exhaustive]
pub enum Prio3SumVec {
#[default]
NoDifferentialPrivacy,
Expand Down

0 comments on commit 42a1574

Please sign in to comment.