Skip to main content

QcStatements

Struct QcStatements 

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

The statements a certificate carries.

Implementations§

Source§

impl<'a> QcStatements<'a>

Source

pub fn memory(&self) -> &Memory

Account retaining the statement collection’s storage. Deferred decoding uses the explicitly supplied current execution domain.

Source

pub fn statements(&self) -> &[QcStatement<'a>]

Every statement, in order.

Source

pub fn get<W: Work>( &self, kind: Oid<'_>, execution: &W, ) -> Result<Option<QcStatement<'a>>>

One statement by identifier, for the ones this crate does not read.

Source

pub fn claims_compliance<W: Work>(&self, execution: &W) -> Result<bool>

Whether the issuer claims this is a qualified certificate.

A claim, not a finding. The trusted list decides.

Source

pub fn claims_qualified_device<W: Work>(&self, execution: &W) -> Result<bool>

Whether the issuer claims the private key is held in a qualified device.

Source

pub fn types<W: Work>(&self, execution: &W) -> Result<OwnedVec<QualifiedType>>

Which kinds of qualified certificate this claims to be.

This is what separates a signature made by a person from a seal made by an organization, which is a difference the report must never collapse.

Source

pub fn retention_period<W: Work>( &self, execution: &W, ) -> Result<Option<RetentionPeriod>>

How long the issuer says it keeps what is needed to check this certificate, in years.

Source

pub fn semantics<W: Work>(&self, execution: &W) -> Result<Option<Oid<'a>>>

Which kind of person the subject’s identifiers are to be read as.

Says how to read an organization identifier or a serial number in the subject’s name, and getting it wrong turns an organization into a person or the reverse.

Source

pub fn read<W: Work>(extension: &Extension<'a>, execution: &W) -> Result<Self>

Reads the value of a qualified statements extension.

Trait Implementations§

Source§

impl<'a> Debug for QcStatements<'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 QcStatements<'a>

§

impl<'a> !RefUnwindSafe for QcStatements<'a>

§

impl<'a> !Send for QcStatements<'a>

§

impl<'a> !Sync for QcStatements<'a>

§

impl<'a> !UnwindSafe for QcStatements<'a>

§

impl<'a> Unpin for QcStatements<'a>

§

impl<'a> UnsafeUnpin for QcStatements<'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.