pub struct NuGetFeedUrl { /* private fields */ }Expand description
A validated, normalized, https-only NuGet V3 service index URL with no embedded userinfo.
Mirrors deps_pypi::config::PypiIndexUrl/deps_npm::config::NpmRegistryIndex.
Implementations§
Source§impl NuGetFeedUrl
impl NuGetFeedUrl
Sourcepub fn new(
raw: &str,
policy: &RegistryAccessPolicy,
) -> Result<Self, NuGetFeedUrlError>
pub fn new( raw: &str, policy: &RegistryAccessPolicy, ) -> Result<Self, NuGetFeedUrlError>
Validates and normalizes raw against policy.
§Errors
Returns NuGetFeedUrlError if raw does not parse as a URL, is not https (outside
the cfg(test)/test-util loopback carve-out), carries a userinfo component, or
resolves to a host class the current policy blocks.
Trait Implementations§
Source§impl Clone for NuGetFeedUrl
impl Clone for NuGetFeedUrl
Source§fn clone(&self) -> NuGetFeedUrl
fn clone(&self) -> NuGetFeedUrl
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NuGetFeedUrl
impl Debug for NuGetFeedUrl
Source§impl Display for NuGetFeedUrl
impl Display for NuGetFeedUrl
impl Eq for NuGetFeedUrl
Source§impl Hash for NuGetFeedUrl
impl Hash for NuGetFeedUrl
Source§impl PartialEq for NuGetFeedUrl
impl PartialEq for NuGetFeedUrl
Source§fn eq(&self, other: &NuGetFeedUrl) -> bool
fn eq(&self, other: &NuGetFeedUrl) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NuGetFeedUrl
Auto Trait Implementations§
impl Freeze for NuGetFeedUrl
impl RefUnwindSafe for NuGetFeedUrl
impl Send for NuGetFeedUrl
impl Sync for NuGetFeedUrl
impl Unpin for NuGetFeedUrl
impl UnsafeUnpin for NuGetFeedUrl
impl UnwindSafe for NuGetFeedUrl
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,
§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
Checks if this value is equivalent to the given key. Read more
§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
Checks if this value is equivalent to the given key. Read more
§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
Compare self to
key and return true if they are equal.