pub struct TrustMetadataV1 {
pub schema_version: u32,
pub metadata_generation: u64,
pub minimum_release_generation: u64,
pub keys: Vec<TrustKeyMetadataV1>,
}Expand description
External trust metadata for publisher key rotation.
The metadata is signed/distributed by the consumer’s trust root. It is not
embedded into release-index schema v3. minimumReleaseGeneration is the
metadata publisher’s release floor; consumers enforce their independent
release floor through TrustVerificationFloorV1.
Fields§
§schema_version: u32§metadata_generation: u64§minimum_release_generation: u64§keys: Vec<TrustKeyMetadataV1>Implementations§
Source§impl TrustMetadataV1
impl TrustMetadataV1
pub fn validate_shape(&self) -> Result<(), &'static str>
Sourcepub fn active_keys_at(
&self,
now_unix_ms: u64,
) -> Result<Vec<&TrustKeyMetadataV1>, &'static str>
pub fn active_keys_at( &self, now_unix_ms: u64, ) -> Result<Vec<&TrustKeyMetadataV1>, &'static str>
Returns the active current/next keys at a point in time.
Trait Implementations§
Source§impl Clone for TrustMetadataV1
impl Clone for TrustMetadataV1
Source§fn clone(&self) -> TrustMetadataV1
fn clone(&self) -> TrustMetadataV1
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 TrustMetadataV1
impl Debug for TrustMetadataV1
Source§impl<'de> Deserialize<'de> for TrustMetadataV1
impl<'de> Deserialize<'de> for TrustMetadataV1
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
impl Eq for TrustMetadataV1
Source§impl PartialEq for TrustMetadataV1
impl PartialEq for TrustMetadataV1
Source§impl Serialize for TrustMetadataV1
impl Serialize for TrustMetadataV1
impl StructuralPartialEq for TrustMetadataV1
Auto Trait Implementations§
impl Freeze for TrustMetadataV1
impl RefUnwindSafe for TrustMetadataV1
impl Send for TrustMetadataV1
impl Sync for TrustMetadataV1
impl Unpin for TrustMetadataV1
impl UnsafeUnpin for TrustMetadataV1
impl UnwindSafe for TrustMetadataV1
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