#[non_exhaustive]pub enum PolicyScope {
FullSource,
Observed,
}Expand description
What the requirements in a policy are statements about.
A profiler reads what it is given. Whether that supports a claim about the whole source depends on what is being claimed, so the policy says which question it asks rather than letting the evaluator guess.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
FullSource
The entire source. A requirement is evaluated only when the evidence covers it, or when the observed data already witnesses a violation that further scanning cannot retract.
Observed
Whatever the metric actually measured — the scanned rows, the retained quality sample, the profiled columns. Always evaluable, and says nothing about the rows that were not read.
Trait Implementations§
Source§impl Clone for PolicyScope
impl Clone for PolicyScope
impl Copy for PolicyScope
Source§impl Debug for PolicyScope
impl Debug for PolicyScope
Source§impl Default for PolicyScope
impl Default for PolicyScope
Source§impl Display for PolicyScope
impl Display for PolicyScope
impl Eq for PolicyScope
Source§impl FromStr for PolicyScope
impl FromStr for PolicyScope
Source§impl PartialEq for PolicyScope
impl PartialEq for PolicyScope
Source§impl Serialize for PolicyScope
impl Serialize for PolicyScope
impl StructuralPartialEq for PolicyScope
Auto Trait Implementations§
impl Freeze for PolicyScope
impl RefUnwindSafe for PolicyScope
impl Send for PolicyScope
impl Sync for PolicyScope
impl Unpin for PolicyScope
impl UnsafeUnpin for PolicyScope
impl UnwindSafe for PolicyScope
Blanket Implementations§
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.