Expand description
The config.json
file stored in the index.
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. The substring {prefix}
will be replaced with the
crate’s prefix directory name, and the substring {lowerprefix}
will
be replaced with the crate’s prefix directory name converted to
lowercase. The substring {sha256-checksum}
will be replaced with the
crate’s sha256 checksum.
For backwards compatibility, if the string does not contain any
markers ({crate}
, {version}
, {prefix}
, or ``{lowerprefix}), 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
sourceimpl Clone for RegistryConfig
impl Clone for RegistryConfig
sourcefn clone(&self) -> RegistryConfig
fn clone(&self) -> RegistryConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RegistryConfig
impl Debug for RegistryConfig
sourceimpl<'de> Deserialize<'de> for RegistryConfig
impl<'de> Deserialize<'de> for RegistryConfig
sourcefn 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
Auto Trait Implementations
impl RefUnwindSafe for RegistryConfig
impl Send for RegistryConfig
impl Sync for RegistryConfig
impl Unpin for RegistryConfig
impl UnwindSafe for RegistryConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more