Struct reg_index::IndexConfig
source · [−]Expand description
The configuration file of the index.
This is stored in the root of the index repo as config.json
.
Fields
dl: Url
URL that Cargo uses to download crates.
This can have the markers {crate}
and {version}
. If the markers
are not present, Cargo automatically appends
/{crate}/{version}/download
to the end.
api: Option<Url>
URL that Cargo uses for the web API (publish/yank/search/etc.).
This is optional. If not specified, Cargo will refuse to publish to this registry.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more