[][src]Struct cargo::sources::registry::RegistryConfig

pub struct RegistryConfig {
    pub dl: String,
    pub api: Option<String>,
}

Fields

dl: String

Download endpoint for all crates.

The string is a template which will generate the download URL for the tarball of a specific version of a crate. The substrings {crate} and {version} will be replaced with the crate's name and version respectively.

For backwards compatibility, if the string does not contain {crate} or {version}, it will be extended with /{crate}/{version}/download to support registries like crates.io which were created before the templating setup was created.

api: Option<String>

API endpoint for the registry. This is what's actually hit to perform operations like yanks, owner modifications, publish new crates, etc. If this is None, the registry does not support API commands.

Trait Implementations

impl<'de> Deserialize<'de> for RegistryConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,