Struct crates_index::IndexConfig
source · pub struct IndexConfig {
pub dl: String,
pub api: Option<String>,
}
Expand description
Global configuration of an index, reflecting the contents of config.json.
Fields§
§dl: String
Pattern for creating download URLs. Use IndexConfig::download_url
instead.
api: Option<String>
Base URL for publishing, etc.
Implementations§
source§impl IndexConfig
impl IndexConfig
Trait Implementations§
source§impl Clone for IndexConfig
impl Clone for IndexConfig
source§fn clone(&self) -> IndexConfig
fn clone(&self) -> IndexConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for IndexConfig
impl Debug for IndexConfig
source§impl<'de> Deserialize<'de> for IndexConfig
impl<'de> Deserialize<'de> for IndexConfig
source§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