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§
Auto Trait Implementations§
impl Forget for DocumentVerdict
impl Freeze for DocumentVerdictwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
*const LeafNode<String, f64> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, f64)>>: Freeze,
PhantomData<Segment>: Freeze,
PhantomData<f64>: Freeze,
PhantomData<u64>: Freeze,
PhantomData<Vec<u64>>: Freeze,
PhantomData<ClassResult>: Freeze,
NonZero<i32>: Freeze,
impl Move for DocumentVerdict
impl RefUnwindSafe for DocumentVerdict
impl Send for DocumentVerdict
impl Sync for DocumentVerdict
impl Unpin for DocumentVerdict
impl UnsafeUnpin for DocumentVerdictwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const LeafNode<String, f64> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, f64)>>: UnsafeUnpin,
PhantomData<Segment>: UnsafeUnpin,
PhantomData<f64>: UnsafeUnpin,
PhantomData<u64>: UnsafeUnpin,
PhantomData<Vec<u64>>: UnsafeUnpin,
PhantomData<ClassResult>: UnsafeUnpin,
NonZeroI32Inner: UnsafeUnpin,
impl UnwindSafe for DocumentVerdict
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more