pub enum NuGetFeedUrlError {
InvalidUrl(String),
NotHttps(String),
UserInfoPresent,
BlockedHost {
class: HostClass,
},
HasCredentials,
Disabled,
UnsupportedProtocolVersion(String),
LocalFeedUnsupported,
EncryptedPasswordUnsupported,
}Expand description
Why a candidate <add value="..."> failed validation, or why it was dropped as
disabled/credentialed/unsupported.
Variants§
InvalidUrl(String)
The value did not parse as a URL at all.
NotHttps(String)
The URL’s scheme is not https.
UserInfoPresent
The URL carries a user:pass@/user@ component.
BlockedHost
The candidate’s host is blocked by the current
deps_core::net_policy::WorkspaceRegistryAccess policy.
HasCredentials
The source has an entry under <packageSourceCredentials> — credentials are never
read, so the source is dropped rather than queried unauthenticated (FR-009).
Disabled
The source is named in <disabledPackageSources> with a true value (FR-004).
UnsupportedProtocolVersion(String)
A protocolVersion="2" (NuGet V2) source — only V3 feeds are supported.
LocalFeedUnsupported
A local filesystem/UNC path feed (e.g. ../packages, \\server\share) — legitimate
and common, but out of scope; logged at debug!, not warn! (unlike a genuinely
malformed value), so a normal local-feed setup doesn’t warn on every parse.
EncryptedPasswordUnsupported
A DPAPI-encrypted <Password> credential value (issue #561, FR-003) — Windows-only,
CryptUnprotectData-dependent, not portably decryptable. Permanently out of scope;
rejected at parse time rather than attempting decryption or silently dropping it.
Trait Implementations§
Source§impl Clone for NuGetFeedUrlError
impl Clone for NuGetFeedUrlError
Source§fn clone(&self) -> NuGetFeedUrlError
fn clone(&self) -> NuGetFeedUrlError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for NuGetFeedUrlError
impl Debug for NuGetFeedUrlError
Source§impl Display for NuGetFeedUrlError
impl Display for NuGetFeedUrlError
impl Eq for NuGetFeedUrlError
Source§impl Error for NuGetFeedUrlError
impl Error for NuGetFeedUrlError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<IndexUrlError> for NuGetFeedUrlError
impl From<IndexUrlError> for NuGetFeedUrlError
Source§fn from(error: IndexUrlError) -> Self
fn from(error: IndexUrlError) -> Self
Source§impl PartialEq for NuGetFeedUrlError
impl PartialEq for NuGetFeedUrlError
Source§fn eq(&self, other: &NuGetFeedUrlError) -> bool
fn eq(&self, other: &NuGetFeedUrlError) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NuGetFeedUrlError
Auto Trait Implementations§
impl Freeze for NuGetFeedUrlError
impl RefUnwindSafe for NuGetFeedUrlError
impl Send for NuGetFeedUrlError
impl Sync for NuGetFeedUrlError
impl Unpin for NuGetFeedUrlError
impl UnsafeUnpin for NuGetFeedUrlError
impl UnwindSafe for NuGetFeedUrlError
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.