Struct cargo_credential::RegistryInfo
source · 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<RegistryInfo<'a>> for RegistryInfo<'a>
impl<'a> PartialEq<RegistryInfo<'a>> for RegistryInfo<'a>
source§fn eq(&self, other: &RegistryInfo<'a>) -> bool
fn eq(&self, other: &RegistryInfo<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> Serialize for RegistryInfo<'a>
impl<'a> Serialize for RegistryInfo<'a>
impl<'a> Eq for RegistryInfo<'a>
impl<'a> StructuralEq for RegistryInfo<'a>
impl<'a> StructuralPartialEq for RegistryInfo<'a>
Auto Trait Implementations§
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
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