pub struct Attestation {
pub spec: String,
pub subject: Subject,
pub timestamp: String,
pub checks: Vec<CheckResult>,
pub verdict: Verdict,
pub signature: Option<Signature>,
}Expand description
The signed attestation document.
Fields§
§spec: StringSpec tag, e.g. “touchstone/0.1”.
subject: SubjectWhat was measured.
timestamp: StringISO-8601 timestamp.
checks: Vec<CheckResult>Every check result the adapter produced.
verdict: VerdictVerdict claimed by the producer — recomputed on verify.
signature: Option<Signature>Device-key signature over the canonical document hash.
Implementations§
Source§impl Attestation
impl Attestation
Trait Implementations§
Source§impl Clone for Attestation
impl Clone for Attestation
Source§impl Debug for Attestation
impl Debug for Attestation
Source§impl<'de> Deserialize<'de> for Attestation
impl<'de> Deserialize<'de> for Attestation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Attestation
impl RefUnwindSafe for Attestation
impl Send for Attestation
impl Sync for Attestation
impl Unpin for Attestation
impl UnsafeUnpin for Attestation
impl UnwindSafe for Attestation
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