Skip to main content

Rule

Enum Rule 

Source
pub enum Rule {
Show 16 variants Value { attribute: Oid<'static>, field: &'static str, }, Schema { code: ErrorCode, field: &'static str, }, Missing(Oid<'static>), Forbidden(Oid<'static>), SigningCertificate, CredentialReferences(Oid<'static>), SignatureTimestamp, ArchiveTimestamp, Certificate, ContentType, DataTypeDescription, PolicyStore, Md5, ArchiveAlgorithm, SigningCertificateVersion, IssuerHint,
}
Expand description

Format-specific findings preserve their cause instead of a blanket invalid.

Variants§

§

Value

A present original value fails its attribute’s selected schema.

Fields

§attribute: Oid<'static>

Original attribute type, not a guessed value interpretation.

§field: &'static str

Field of the retained cause on the original property reading.

§

Schema

Existing CMS/ESS/CAdES schema diagnostic.

Fields

§code: ErrorCode

Exact original CMS/encoding/PKIX diagnostic category.

§field: &'static str

Original protocol field; the finding carries its source location.

§

Missing(Oid<'static>)

Mandatory original attribute is absent.

§

Forbidden(Oid<'static>)

This original attribute is forbidden or discouraged at the requested level; the finding severity distinguishes SHALL NOT from SHOULD NOT.

§

SigningCertificate

No signing-certificate protection service exists.

§

CredentialReferences(Oid<'static>)

Credential references lack this signer’s protected certified attribute or signed assertion (Table1 requirement n).

§

SignatureTimestamp

The requested level needs a root signature timestamp.

§

ArchiveTimestamp

The requested archival level needs a root ATSv3.

§

Certificate

A baseline original container needs the signer’s certificate.

§

ContentType

CMS content must be id-data for this root baseline signature.

§

DataTypeDescription

A data-type description is recommended, not mandatory.

§

PolicyStore

A written store lacks its protected, nonzero policy document digest.

§

Md5

Actual use of MD5 violates the format, independently of backend support.

§

ArchiveAlgorithm

Known archive-index and timestamp-imprint digest identities disagree (EN319122-1 §5.5.2); no provider or mathematical comparison is implied.

§

SigningCertificateVersion

A V2 certificate reference uses SHA-1 instead of a different hash.

§

IssuerHint

Optional issuerSerial hint SHOULD be omitted (§6.3(g)).

Trait Implementations§

Source§

impl Debug for Rule

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for Rule

§

impl RefUnwindSafe for Rule

§

impl Send for Rule

§

impl Sync for Rule

§

impl Unpin for Rule

§

impl UnsafeUnpin for Rule

§

impl UnwindSafe for Rule

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.