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