SourceInfo

Trait SourceInfo 

Source
pub trait SourceInfo {
    type Url: AsRef<str>;

    // Required methods
    fn make_manifest_url(&self, _: NaiveDate) -> Self::Url;
    fn make_latest_manifest_url(&self) -> Self::Url;
}
Expand description

A set of methods that we need to retrieve manifest from a source.

Required Associated Types§

Source

type Url: AsRef<str>

A type of URLs returned by this trait.

Required Methods§

Source

fn make_manifest_url(&self, _: NaiveDate) -> Self::Url

Makes a URL for a manifest for a specified date.

Source

fn make_latest_manifest_url(&self) -> Self::Url

Makes a URL for the latest manifest.

Implementors§