UrlBuilder

Trait UrlBuilder 

Source
pub trait UrlBuilder: Send + Sync {
    // Required methods
    fn download_url(&self, version: &str) -> Option<String>;
    fn versions_url(&self) -> &str;
}
Expand description

Helper trait for URL builders that can generate download URLs

Required Methods§

Source

fn download_url(&self, version: &str) -> Option<String>

Generate download URL for a specific version

Source

fn versions_url(&self) -> &str

Get the base URL for fetching version information

Implementors§