[−][src]Struct cargo::sources::registry::RegistryConfig
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 crated 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]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for RegistryConfig
impl Sync for RegistryConfig
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> Same for T
type Output = T
Should always be Self