pub enum MarkingClassification {
Us(Classification),
Fgi(FgiClassification),
Nato(NatoClassification),
Joint(JointClassification),
Conflict {
us: Classification,
foreign: Box<ForeignClassification>,
},
}Expand description
The classification system and level for a marking.
A marking has exactly one classification system. When the parser finds
two (e.g., SECRET//NATO SECRET//...), it resolves to Conflict.
Variants§
Us(Classification)
US IC classification.
Fgi(FgiClassification)
Non-US (FGI) classification: //GBR S//...
Nato(NatoClassification)
NATO classification: //NS//...
Joint(JointClassification)
JOINT classification (US co-owned): //JOINT S USA GBR//...
Conflict
Parser found two classification systems in one marking.
US wins, upgraded to the greater of the two levels. The foreign part is preserved so rules can suggest the FGI fix.
Example: SECRET//COSMIC TOP SECRET//REL TO USA, NATO
→ us: TopSecret, foreign: Nato(CosmicTopSecret)
→ fix: TOP SECRET//FGI NATO//REL TO USA, NATO
Fields
us: ClassificationResolved US classification (max of both levels).
foreign: Box<ForeignClassification>The foreign classification that should become an FGI marker.
Implementations§
Source§impl MarkingClassification
impl MarkingClassification
Sourcepub fn effective_level(&self) -> Classification
pub fn effective_level(&self) -> Classification
The effective classification level for ordering purposes, regardless of classification system.
NATO levels are mapped to their US equivalents via
NatoClassification::us_equivalent. All systems use the
Classification ladder for comparison so that Iterator::max() on
a mixed set of portions returns the most restrictive level overall.
Trait Implementations§
Source§impl Clone for MarkingClassification
impl Clone for MarkingClassification
Source§fn clone(&self) -> MarkingClassification
fn clone(&self) -> MarkingClassification
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more