Skip to main content

DevReleaseSource

Trait DevReleaseSource 

Source
pub trait DevReleaseSource {
    // Required methods
    fn releases_page(&self, repo: &str, page: u32) -> Result<Vec<RepoRelease>>;
    fn commit_provenance(
        &self,
        repo: &str,
        tag: &str,
    ) -> Result<CommitProvenance>;
}
Expand description

Reads releases and commit provenance. Injected so resolution is testable without the network.

Required Methods§

Source

fn releases_page(&self, repo: &str, page: u32) -> Result<Vec<RepoRelease>>

Releases of repo, newest first, one page at a time (page starts at 1).

Source

fn commit_provenance(&self, repo: &str, tag: &str) -> Result<CommitProvenance>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§