Skip to main content

spec_for_download

Function spec_for_download 

Source
pub fn spec_for_download(
    file: &str,
    url: &str,
    size: u64,
    sha256: Option<String>,
    facts: ModelFacts,
) -> ModelSpec
Expand description

A spec for a file a feed names: its URL, the entry’s own byte length, and the digest where the host publishes one - the Hub’s blobs carry a sha256 per file, and the speech feed’s documents carry none.