pub struct InvalidEntry {
pub raw: String,
pub reason: PypiIndexUrlError,
}Expand description
A present-but-unusable index entry — an invalid URL, a policy-blocked host, or a well-formed-but-non-https/userinfo-bearing value.
Carries the raw value as written, with any embedded userinfo redacted (M1 fix — see
deps_core::net_policy::redact_userinfo), so PypiIndexConfig::resolve_source_for can build
DependencySource::CustomRegistry for an explicit primary/named source, or log a warning
naming what the user wrote for a dropped extra, without ever holding or surfacing the
credential itself: a CustomRegistry.url can reach hover/diagnostics text, and a
UserInfoPresent rejection is exactly the case where raw would otherwise still contain
user:pass@.
Fields§
§raw: StringThe raw index value, as written in the source file, with any user:pass@/user@
userinfo component stripped.
reason: PypiIndexUrlErrorWhy it was rejected.
Trait Implementations§
Source§impl Clone for InvalidEntry
impl Clone for InvalidEntry
Source§fn clone(&self) -> InvalidEntry
fn clone(&self) -> InvalidEntry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for InvalidEntry
impl RefUnwindSafe for InvalidEntry
impl Send for InvalidEntry
impl Sync for InvalidEntry
impl Unpin for InvalidEntry
impl UnsafeUnpin for InvalidEntry
impl UnwindSafe for InvalidEntry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more