#[repr(u8)]pub enum SecurityClassification {
Public = 0,
Internal = 1,
Confidential = 2,
Restricted = 3,
TopSecret = 4,
}Expand description
Ordered sensitivity levels. Higher levels must not flow to lower-trust destinations without an explicit policy decision.
Variants§
Public = 0
Intended for unrestricted disclosure.
Internal = 1
Non-public operational information.
Confidential = 2
Information requiring an authorized recipient.
Restricted = 3
Information requiring explicit need-to-know controls.
TopSecret = 4
Highest sensitivity; enterprise controls must explicitly authorize use.
Implementations§
Source§impl SecurityClassification
impl SecurityClassification
Sourcepub const fn may_flow_to(self, destination: Self) -> bool
pub const fn may_flow_to(self, destination: Self) -> bool
Returns whether data at this level may flow to destination.
Trait Implementations§
Source§impl Clone for SecurityClassification
impl Clone for SecurityClassification
impl Copy for SecurityClassification
Source§impl Debug for SecurityClassification
impl Debug for SecurityClassification
Source§impl Default for SecurityClassification
impl Default for SecurityClassification
Source§impl<'de> Deserialize<'de> for SecurityClassification
impl<'de> Deserialize<'de> for SecurityClassification
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
impl Eq for SecurityClassification
Source§impl Ord for SecurityClassification
impl Ord for SecurityClassification
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for SecurityClassification
impl PartialEq for SecurityClassification
Source§impl PartialOrd for SecurityClassification
impl PartialOrd for SecurityClassification
Source§impl PolicyContext for SecurityClassification
impl PolicyContext for SecurityClassification
Source§fn classification(&self) -> Option<SecurityClassification>
fn classification(&self) -> Option<SecurityClassification>
Returns a classification when the context carries one.
Source§fn identity(&self) -> Option<&IdentityContext>
fn identity(&self) -> Option<&IdentityContext>
Returns an identity when the context carries one.
Source§impl Serialize for SecurityClassification
impl Serialize for SecurityClassification
impl StructuralPartialEq for SecurityClassification
Auto Trait Implementations§
impl Forget for SecurityClassification
impl Freeze for SecurityClassification
impl Move for SecurityClassification
impl RefUnwindSafe for SecurityClassification
impl Send for SecurityClassification
impl Sync for SecurityClassification
impl Unpin for SecurityClassification
impl UnsafeUnpin for SecurityClassification
impl UnwindSafe for SecurityClassification
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> 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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> 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