pub struct Clearance<'a> {
pub element: Element<'a>,
pub syntax: Syntax,
pub policy: Oid<'a>,
pub policy_element: Element<'a>,
pub classes: Option<BitString<'a>>,
pub classes_element: Option<Element<'a>>,
pub categories_element: Option<Element<'a>>,
pub categories: OwnedVec<SecurityCategory<'a>>,
}Expand description
Complete original clearance. Absence of classList means unclassified; absence of securityCategories differs from a present empty SET.
Fields§
§element: Element<'a>Original whole SEQUENCE.
syntax: SyntaxOriginal field-tag convention, not a policy choice.
policy: Oid<'a>Security policy identifier, not a trust assertion.
policy_element: Element<'a>Original policy identifier field.
classes: Option<BitString<'a>>Original named bits, including policy-defined positions beyond bit5.
classes_element: Option<Element<'a>>Original classList field, absent for the schema default.
categories_element: Option<Element<'a>>Original categories SET, absent independently of its cardinality.
categories: OwnedVec<SecurityCategory<'a>>Categories in original SET order, with retained capacity accounting.
Implementations§
Source§impl<'a> Clearance<'a>
impl<'a> Clearance<'a>
Sourcepub fn read(parent: &mut ScopedReader<'a, '_>) -> Result<Self>
pub fn read(parent: &mut ScopedReader<'a, '_>) -> Result<Self>
Reads exactly one complete current or deprecated clearance syntax.
Sourcepub fn read_element(
parent: &ScopedReader<'a, '_>,
element: &Element<'a>,
) -> Result<Self>
pub fn read_element( parent: &ScopedReader<'a, '_>, element: &Element<'a>, ) -> Result<Self>
Reads original DER fields without retagging or resetting source limits.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !Freeze for Clearance<'a>
impl<'a> !RefUnwindSafe for Clearance<'a>
impl<'a> !Send for Clearance<'a>
impl<'a> !Sync for Clearance<'a>
impl<'a> !UnwindSafe for Clearance<'a>
impl<'a> Unpin for Clearance<'a>
impl<'a> UnsafeUnpin for Clearance<'a>
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