Skip to content

Commit

Permalink
yet more derives
Browse files Browse the repository at this point in the history
  • Loading branch information
ooovi committed Sep 1, 2023
1 parent 76d20d9 commit d43961a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
//!
use num_bigint::{BigInt, BigUint, TryFromBigIntError};
use num_rational::{BigRational, Ratio};
use serde::{Serialize, Deserialize};
use serde::{Deserialize, Serialize};

/// Errors propagated by methods in this module.
#[derive(Debug, thiserror::Error)]
Expand Down Expand Up @@ -84,6 +84,7 @@ pub trait DifferentialPrivacyDistribution {}
/// Zero-concentrated differential privacy (ZCDP) budget as defined in [[BS16]].
///
/// [BS16]: https://arxiv.org/pdf/1605.02065.pdf
#[derive(Clone, Debug, Serialize, Deserialize, PartialEq, Eq)]
pub struct ZCdpBudget {
epsilon: Ratio<BigUint>,
}
Expand Down

0 comments on commit d43961a

Please sign in to comment.