Skip to main content

DocumentVerdict

Struct DocumentVerdict 

Source
pub struct DocumentVerdict {
    pub certificate_id: Option<String>,
    pub verification: Result<Verified, CertError>,
    pub expiry: Option<Expiry>,
}
Expand description

The separate results of verify_document. They are never folded into one yes or no: a consumer reads each.

Fields§

§certificate_id: Option<String>

sha256:<hex> of the document’s JCS bytes, as certificate_id computes it, whatever the verdict; None only when the document cannot be canonicalised.

§verification: Result<Verified, CertError>

What verify_for_tenant returns for the document: the form, tenant, key, key mode and signature checks.

§expiry: Option<Expiry>

The expiry at now, when the document verified; None when it did not.

Trait Implementations§

Source§

impl Debug for DocumentVerdict

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Forget for DocumentVerdict

§

impl Freeze for DocumentVerdict

§

impl Move for DocumentVerdict

§

impl RefUnwindSafe for DocumentVerdict

§

impl Send for DocumentVerdict
where RawVecInner: Send, NodeRef<Owned, String, f64, LeafOrInternal>: Send, BoxRaw<(String, f64)>: Send, NonZero<i32>: Send,

§

impl Sync for DocumentVerdict
where RawVecInner: Sync, NodeRef<Owned, String, f64, LeafOrInternal>: Sync, BoxRaw<(String, f64)>: Sync, NonZero<i32>: Sync,

§

impl Unpin for DocumentVerdict
where *const u8 is !null: Unpin, *const LeafNode<String, f64> is !null: Unpin, Box<(String, f64)>: Unpin, NonZero<i32>: Unpin,

§

impl UnsafeUnpin for DocumentVerdict

§

impl UnwindSafe for DocumentVerdict

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> Same for T

Source§

type Output = T

Should always be Self
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.