pub enum Classification {
Unclassified,
Confidential,
Secret,
TopSecret,
}Expand description
Classification level. These values are stable across CAPCO schema versions. Hand-written rather than generated because the CVE uses abbreviations (R/C/S/TS/U) while the tool needs both abbreviated and full-word forms.
Variants§
Implementations§
Source§impl Classification
impl Classification
Banner form (full words, no abbreviations).
Sourcepub fn portion_str(self) -> &'static str
pub fn portion_str(self) -> &'static str
Portion form (abbreviation used in portion markings).
Trait Implementations§
Source§impl Clone for Classification
impl Clone for Classification
Source§fn clone(&self) -> Classification
fn clone(&self) -> Classification
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Classification
impl Debug for Classification
Source§impl Hash for Classification
impl Hash for Classification
Source§impl Ord for Classification
impl Ord for Classification
Source§fn cmp(&self, other: &Classification) -> Ordering
fn cmp(&self, other: &Classification) -> Ordering
1.21.0 · 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 Classification
impl PartialEq for Classification
Source§impl PartialOrd for Classification
impl PartialOrd for Classification
impl Copy for Classification
impl Eq for Classification
impl StructuralPartialEq for Classification
Auto Trait Implementations§
impl Freeze for Classification
impl RefUnwindSafe for Classification
impl Send for Classification
impl Sync for Classification
impl Unpin for Classification
impl UnsafeUnpin for Classification
impl UnwindSafe for Classification
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