pub trait Provider {
// Required methods
fn id(&self) -> &str;
fn list_versions(&self) -> VtaResult<Vec<String>>;
fn resolve(&self, version: &str, platform: &Platform) -> VtaResult<Artifact>;
}Expand description
Describes how to discover and resolve a tool’s artifacts
(docs/07-providers.md, docs/22-provider-sdk.md).
Required Methods§
Sourcefn list_versions(&self) -> VtaResult<Vec<String>>
fn list_versions(&self) -> VtaResult<Vec<String>>
The available version strings, newest-first ordering applied by the resolver.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".