Skip to main content

compmd_host/
fetched_by.rs

1//! Who fetches a bundle's registry packs, as its configuration's `fetch` says.
2
3use serde::{Deserialize, Serialize};
4
5/// Who fetches from the registries.
6#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Deserialize, Serialize)]
7#[serde(rename_all = "lowercase")]
8pub enum FetchedBy {
9    /// The host, through its `registry/` proxy: the default.
10    #[default]
11    Host,
12    /// The reader's browser, from the registries themselves.
13    Direct,
14}