pub struct RoleSyntax<'a> { /* private fields */ }Expand description
A complete DER role assertion, borrowing the original document. Authority metadata retains its capacity charge independently of the shorter query.
Implementations§
Source§impl<'a> RoleSyntax<'a>
impl<'a> RoleSyntax<'a>
Sourcepub fn read(parent: &mut ScopedReader<'a, '_>) -> Result<Self>
pub fn read(parent: &mut ScopedReader<'a, '_>) -> Result<Self>
Reads exactly one standalone role value. AC signed information is DER even when a BER envelope carries it (RFC5755 §4.1).
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 an original element under its producing source/depth and current execution. All fields and trailing bytes are checked before success.
Sourcepub fn read_attribute<W: Work>(
attribute: &Attribute<'a>,
work: &W,
) -> Result<OwnedVec<Self>>
pub fn read_attribute<W: Work>( attribute: &Attribute<'a>, work: &W, ) -> Result<OwnedVec<Self>>
Reads every value of one registered id-at-role Attribute in source
order. RFC5755 §4.4.5 permits multiple values, unlike group/charging
singleton syntax. Empty or invalid later values refuse the whole read;
no successful partial catalogue or authorization fact is returned.
Optional original authority names, not authenticated by this reader.
Original [0] IMPLICIT GeneralNames, if written.
Sourcepub fn name_wrapper(&self) -> Element<'a>
pub fn name_wrapper(&self) -> Element<'a>
Original mandatory [1] EXPLICIT GeneralName wrapper.
Sourcepub fn name_element(&self) -> Element<'a>
pub fn name_element(&self) -> Element<'a>
Original URI CHOICE element, inside the explicit wrapper.