pub enum TaintLevel {
Public,
Internal,
Private,
}Expand description
Sensitivity level for data in context regions.
Ordered from least to most sensitive. When compared, higher sensitivity levels are “greater than” lower ones.
Variants§
Public
Freely shareable. Web search results, public documentation, open-source code.
Internal
Work-related but not personal. Private repo code, internal docs, team discussions.
Private
Personal or highly sensitive. Calendar, messages, contacts, financial data.
Implementations§
Source§impl TaintLevel
impl TaintLevel
Sourcepub fn max(self, other: TaintLevel) -> TaintLevel
pub fn max(self, other: TaintLevel) -> TaintLevel
Returns the maximum of two taint levels.
Sourcepub fn from_str_loose(s: &str) -> Option<TaintLevel>
pub fn from_str_loose(s: &str) -> Option<TaintLevel>
Parse a taint level from a string (case-insensitive).
Trait Implementations§
Source§impl Clone for TaintLevel
impl Clone for TaintLevel
Source§fn clone(&self) -> TaintLevel
fn clone(&self) -> TaintLevel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TaintLevel
Source§impl Debug for TaintLevel
impl Debug for TaintLevel
Source§impl Default for TaintLevel
impl Default for TaintLevel
Source§fn default() -> TaintLevel
fn default() -> TaintLevel
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TaintLevel
impl<'de> Deserialize<'de> for TaintLevel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for TaintLevel
impl Display for TaintLevel
impl Eq for TaintLevel
Source§impl Hash for TaintLevel
impl Hash for TaintLevel
Source§impl Ord for TaintLevel
impl Ord for TaintLevel
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TaintLevel
impl PartialEq for TaintLevel
Source§impl PartialOrd for TaintLevel
impl PartialOrd for TaintLevel
Source§impl Serialize for TaintLevel
impl Serialize for TaintLevel
impl StructuralPartialEq for TaintLevel
Auto Trait Implementations§
impl Freeze for TaintLevel
impl RefUnwindSafe for TaintLevel
impl Send for TaintLevel
impl Sync for TaintLevel
impl Unpin for TaintLevel
impl UnsafeUnpin for TaintLevel
impl UnwindSafe for TaintLevel
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.