pub struct RegistryInfo<'a> {
pub index_url: &'a str,
pub name: Option<&'a str>,
pub headers: Vec<String>,
}
Fields§
§index_url: &'a str
Registry index url
name: Option<&'a str>
Name of the registry in configuration. May not be available.
The crates.io registry will be crates-io
(CRATES_IO_REGISTRY
).
headers: Vec<String>
Headers from attempting to access a registry that resulted in a HTTP 401.
Trait Implementations§
source§impl<'a> Clone for RegistryInfo<'a>
impl<'a> Clone for RegistryInfo<'a>
source§fn clone(&self) -> RegistryInfo<'a>
fn clone(&self) -> RegistryInfo<'a>
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<'a> Debug for RegistryInfo<'a>
impl<'a> Debug for RegistryInfo<'a>
source§impl<'de: 'a, 'a> Deserialize<'de> for RegistryInfo<'a>
impl<'de: 'a, 'a> Deserialize<'de> for RegistryInfo<'a>
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
source§impl<'a> PartialEq for RegistryInfo<'a>
impl<'a> PartialEq for RegistryInfo<'a>
source§impl<'a> Serialize for RegistryInfo<'a>
impl<'a> Serialize for RegistryInfo<'a>
impl<'a> Eq for RegistryInfo<'a>
impl<'a> StructuralPartialEq for RegistryInfo<'a>
Auto Trait Implementations§
impl<'a> Freeze for RegistryInfo<'a>
impl<'a> RefUnwindSafe for RegistryInfo<'a>
impl<'a> Send for RegistryInfo<'a>
impl<'a> Sync for RegistryInfo<'a>
impl<'a> Unpin for RegistryInfo<'a>
impl<'a> UnwindSafe for RegistryInfo<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 56 bytes