#[repr(u8)]pub enum ConfidentialityMark {
Public = 0,
SuppressedForPrivacy = 1,
Perturbed = 2,
ModelledEstimate = 3,
}Expand description
Confidentiality-mark semantics for statistical cells (G42).
Variants§
Public = 0
Freely publishable cell.
SuppressedForPrivacy = 1
Cell suppressed to prevent primary or secondary identification.
Perturbed = 2
Cell value perturbed (e.g. additive noise or random rounding).
ModelledEstimate = 3
Modelled or imputed estimate rather than direct census enumeration.
Implementations§
Source§impl ConfidentialityMark
impl ConfidentialityMark
Sourcepub fn sensitivity_class(&self) -> u8
pub fn sensitivity_class(&self) -> u8
Maps confidentiality mark to an NQuin sensitivity class (bits [56..63] of context): 0 = Public, 1 = Restricted, 2 = Classified.
Sourcepub fn epistemic_certainty(&self) -> f32
pub fn epistemic_certainty(&self) -> f32
Epistemic certainty weight in [0.0, 1.0] corresponding to the mark.
Trait Implementations§
Source§impl Clone for ConfidentialityMark
impl Clone for ConfidentialityMark
impl Copy for ConfidentialityMark
Source§impl Debug for ConfidentialityMark
impl Debug for ConfidentialityMark
Source§impl Default for ConfidentialityMark
impl Default for ConfidentialityMark
impl Eq for ConfidentialityMark
Source§impl PartialEq for ConfidentialityMark
impl PartialEq for ConfidentialityMark
impl StructuralPartialEq for ConfidentialityMark
Auto Trait Implementations§
impl Freeze for ConfidentialityMark
impl RefUnwindSafe for ConfidentialityMark
impl Send for ConfidentialityMark
impl Sync for ConfidentialityMark
impl Unpin for ConfidentialityMark
impl UnsafeUnpin for ConfidentialityMark
impl UnwindSafe for ConfidentialityMark
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.