pub struct RegistryReleaseMetadata {
pub singleton: bool,
pub runmat_requirement: Option<String>,
pub dependencies: Vec<RegistryReleaseDependency>,
pub features: BTreeMap<String, Vec<String>>,
pub required_capabilities: Vec<String>,
pub optional_capabilities: Vec<String>,
pub readme_digest: Option<String>,
pub license: Option<String>,
pub encryption: Option<EncryptedArtifactMetadata>,
pub supply_chain: Option<RegistryReleaseSupplyChain>,
}Fields§
§singleton: bool§runmat_requirement: Option<String>§dependencies: Vec<RegistryReleaseDependency>§features: BTreeMap<String, Vec<String>>§required_capabilities: Vec<String>§optional_capabilities: Vec<String>§readme_digest: Option<String>§license: Option<String>§encryption: Option<EncryptedArtifactMetadata>§supply_chain: Option<RegistryReleaseSupplyChain>Implementations§
Source§impl RegistryReleaseMetadata
impl RegistryReleaseMetadata
pub fn compute_digest( &self, source: &RegistrySourceId, ) -> Result<ContentDigest, String>
pub fn validate_source(&self, source: &RegistrySourceId) -> Result<(), String>
pub fn verify_supply_chain( &self, package_id: &str, source: &RegistrySourceId, ) -> Result<(), String>
Trait Implementations§
Source§impl Clone for RegistryReleaseMetadata
impl Clone for RegistryReleaseMetadata
Source§fn clone(&self) -> RegistryReleaseMetadata
fn clone(&self) -> RegistryReleaseMetadata
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 RegistryReleaseMetadata
impl Debug for RegistryReleaseMetadata
Source§impl<'de> Deserialize<'de> for RegistryReleaseMetadata
impl<'de> Deserialize<'de> for RegistryReleaseMetadata
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 RegistryReleaseMetadata
Source§impl PartialEq for RegistryReleaseMetadata
impl PartialEq for RegistryReleaseMetadata
Source§impl Serialize for RegistryReleaseMetadata
impl Serialize for RegistryReleaseMetadata
impl StructuralPartialEq for RegistryReleaseMetadata
Auto Trait Implementations§
impl Freeze for RegistryReleaseMetadata
impl RefUnwindSafe for RegistryReleaseMetadata
impl Send for RegistryReleaseMetadata
impl Sync for RegistryReleaseMetadata
impl Unpin for RegistryReleaseMetadata
impl UnsafeUnpin for RegistryReleaseMetadata
impl UnwindSafe for RegistryReleaseMetadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.