pub struct Attestation {
pub kind: AttestationKind,
pub certificates: Vec<Vec<u8>>,
pub signature: Option<Vec<u8>>,
pub metadata: Value,
}Expand description
Structured attestation evidence with a discriminant kind.
The kind field tells consumers what they’re looking at and how to verify it.
Fields§
§kind: AttestationKindWhat kind of attestation this is.
certificates: Vec<Vec<u8>>DER-encoded certificate chain. Leaf first, then intermediates, then root (if known).
Empty for Pkcs11Attributes kind.
signature: Option<Vec<u8>>Raw signature bytes (if applicable). None for attribute-based attestation.
metadata: ValueAdditional metadata (key attributes, slot info, etc.) for transcript recording.
Trait Implementations§
Source§impl Clone for Attestation
impl Clone for Attestation
Source§fn clone(&self) -> Attestation
fn clone(&self) -> Attestation
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 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