pub enum AttestationReport {
V1(AttestationReportV1),
V2(AttestationReportV2),
}Expand description
Enum Containing the different versions of the Attestation Report
Since the release of the firmware API version 1.4, the attestation report support extended format. In order to keep backwards compatibility, use enum V1(AttestationReportV1) to handling legacy attestation report.
The V2(AttestationReportV2) is referred to as extended attestation report.
Variants§
V1(AttestationReportV1)
Version 1 of the Attestation Report returned by the firmware
V2(AttestationReportV2)
Version 2 of the Attestation Report returned by the firmware
Implementations§
Trait Implementations§
Source§impl Clone for AttestationReport
impl Clone for AttestationReport
Source§fn clone(&self) -> AttestationReport
fn clone(&self) -> AttestationReport
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 AttestationReport
impl Debug for AttestationReport
Source§impl<'de> Deserialize<'de> for AttestationReport
impl<'de> Deserialize<'de> for AttestationReport
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
Source§impl PartialEq for AttestationReport
impl PartialEq for AttestationReport
Source§fn eq(&self, other: &AttestationReport) -> bool
fn eq(&self, other: &AttestationReport) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AttestationReport
impl Serialize for AttestationReport
impl Eq for AttestationReport
impl StructuralPartialEq for AttestationReport
Auto Trait Implementations§
impl Freeze for AttestationReport
impl RefUnwindSafe for AttestationReport
impl Send for AttestationReport
impl Sync for AttestationReport
impl Unpin for AttestationReport
impl UnsafeUnpin for AttestationReport
impl UnwindSafe for AttestationReport
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