pub struct IndexConfig {
    pub dl: Url,
    pub api: Option<Url>,
    /* private fields */
}
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

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.