pub struct PublishedVersionEntry {
pub kind: String,
pub generation: usize,
pub created_at: DateTime<FixedOffset>,
pub ref_: String,
pub launch_measurement: LaunchMeasurement,
pub signature: PublishedVersionEntrySignature,
}Fields§
§kind: StringThe kind of entry, in case we want to include other types in the future (e.g., key revocations, …)
generation: usizeHow Self::launch_measurement was calculated (breaking changes increase the version)
created_at: DateTime<FixedOffset>§ref_: StringReference to the source repository as Nix flake URL
launch_measurement: LaunchMeasurementLaunch measurement for the system version. Generation 1 stores a flat SHA-384 digest; generation 2 stores the pre-VMSA digest and VMSA bytes separately to decouple the measurement from the vCPU count.
signature: PublishedVersionEntrySignatureYAXI signature
Implementations§
Source§impl PublishedVersionEntry
impl PublishedVersionEntry
Sourcepub fn verify_signature(&self) -> Result<(), SignatureVerificationError>
pub fn verify_signature(&self) -> Result<(), SignatureVerificationError>
Verifies whether this entry is signed with a well-known key.
§Errors
Returns an error if the key id is unknown. Also forwards errors from
ed25519_dalek
Trait Implementations§
Source§impl Clone for PublishedVersionEntry
impl Clone for PublishedVersionEntry
Source§fn clone(&self) -> PublishedVersionEntry
fn clone(&self) -> PublishedVersionEntry
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 PublishedVersionEntry
impl Debug for PublishedVersionEntry
Source§impl<'de> Deserialize<'de> for PublishedVersionEntry
impl<'de> Deserialize<'de> for PublishedVersionEntry
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 PublishedVersionEntry
impl RefUnwindSafe for PublishedVersionEntry
impl Send for PublishedVersionEntry
impl Sync for PublishedVersionEntry
impl Unpin for PublishedVersionEntry
impl UnsafeUnpin for PublishedVersionEntry
impl UnwindSafe for PublishedVersionEntry
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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