Skip to main content

IetfAttrSyntax

Struct IetfAttrSyntax 

Source
pub struct IetfAttrSyntax<'a> { /* private fields */ }
Expand description

Fully decoded IetfAttrSyntax with independently retained metadata storage. The original document must remain alive; a shorter query need not.

Implementations§

Source§

impl<'a> IetfAttrSyntax<'a>

Source

pub fn read(parent: &mut ScopedReader<'a, '_>) -> Result<Self>

Reads one complete standalone DER value. A BER envelope does not relax the DER requirement of AC signed information (RFC5755 §4.1).

Source

pub fn read_element( parent: &ScopedReader<'a, '_>, element: &Element<'a>, ) -> Result<Self>

Decodes a whole original element in its producing context. Root headers and contents follow DER, preserving source offsets, nesting and current execution. No replacement Parser or retagged bytes are manufactured.

Source

pub fn read_attribute<W: Work>( attribute: &Attribute<'a>, work: &W, ) -> Result<Self>

Reads a registered group or chargingIdentity Attribute. RFC5755 §§4.4.3–4.4.4 permit exactly one outer AttributeValue, with multiplicity inside IetfAttrSyntax. OID/cardinality checks precede value decoding. This does not infer group membership, authority trust or charging policy.

Source

pub fn element(&self) -> Element<'a>

Original whole syntax value, without canonicalization.

Source

pub fn authority(&self) -> Option<&[GeneralName<'a>]>

Original policyAuthority names, separate from AC issuer/trust.

Source

pub fn authority_element(&self) -> Option<Element<'a>>

Original IMPLICIT authority encoding, including its actual source range.

Source

pub fn values(&self) -> &[Member<'a>]

Original values in order. Callers admit their own traversal; reading this borrowed slice neither copies storage nor performs matching.

Source

pub fn choice(&self) -> Option<Choice>

Common syntax, or None for an empty original values sequence.

Trait Implementations§

Source§

impl<'a> Debug for IetfAttrSyntax<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a> !Freeze for IetfAttrSyntax<'a>

§

impl<'a> RefUnwindSafe for IetfAttrSyntax<'a>

§

impl<'a> Send for IetfAttrSyntax<'a>

§

impl<'a> Sync for IetfAttrSyntax<'a>

§

impl<'a> Unpin for IetfAttrSyntax<'a>

§

impl<'a> UnsafeUnpin for IetfAttrSyntax<'a>

§

impl<'a> UnwindSafe for IetfAttrSyntax<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.