pub struct SignedEvidence {
pub evidence: RunEvidence,
pub signature: SignaturePayload,
}Expand description
Convenience wrapper bundling a RunEvidence artifact with its
detached-shape SignaturePayload.
This is just a type-safety convenience for callers that need to pass
a guaranteed-signed artifact around in their type system. The
underlying wire-format storage location is
RunEvidence::signature — both shapes round-trip cleanly to and
from canonical JSON.
Fields§
§evidence: RunEvidenceThe signed evidence. Its RunEvidence::signature field is
always Some on a value returned from sign_evidence.
signature: SignaturePayloadThe signature payload, duplicated as a sibling field so callers
can borrow the signature without unpacking the option on
evidence.
Trait Implementations§
Source§impl Clone for SignedEvidence
impl Clone for SignedEvidence
Source§fn clone(&self) -> SignedEvidence
fn clone(&self) -> SignedEvidence
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SignedEvidence
impl Debug for SignedEvidence
impl Eq for SignedEvidence
Source§impl PartialEq for SignedEvidence
impl PartialEq for SignedEvidence
Source§fn eq(&self, other: &SignedEvidence) -> bool
fn eq(&self, other: &SignedEvidence) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SignedEvidence
Auto Trait Implementations§
impl Freeze for SignedEvidence
impl RefUnwindSafe for SignedEvidence
impl Send for SignedEvidence
impl Sync for SignedEvidence
impl Unpin for SignedEvidence
impl UnsafeUnpin for SignedEvidence
impl UnwindSafe for SignedEvidence
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.