Skip to main content

ReleaseSource

Trait ReleaseSource 

Source
pub trait ReleaseSource {
    // Required methods
    fn asset(&self, tag: &str, name: &str) -> Result<Vec<u8>, String>;
    fn checksums(&self, tag: &str) -> Result<String, String>;
    fn attestations(&self, tag: &str, sha256: &str) -> Bundles;
}
Expand description

Where a release’s files come from. The error is prose; the policy adds what it means.

Required Methods§

Source

fn asset(&self, tag: &str, name: &str) -> Result<Vec<u8>, String>

The bytes of release tag’s asset name.

Source

fn checksums(&self, tag: &str) -> Result<String, String>

The body of release tag’s CHECKSUMS asset.

Source

fn attestations(&self, tag: &str, sha256: &str) -> Bundles

Every attestation bundle published for the asset whose SHA-256 is sha256, lowercase hex, on release tag, or why there are none.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§