pub struct IndexUrl(/* private fields */);Expand description
URL of a registry index: the first component of registry plugin identity,
used both in PluginId::Registry and in dependencies.plugins entries
(crate::PluginDependency), so references and identities compare under
one normalization and validation rule.
Scheme is restricted to https, http, or file — the same set as
crate::ArtifactsUrl, via the same shared validator. The set may widen
in a future minor version; widening is non-breaking.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for IndexUrl
impl<'de> Deserialize<'de> for IndexUrl
Source§fn deserialize<D>(
deserializer: D,
) -> Result<IndexUrl, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<IndexUrl, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for IndexUrl
Source§impl Serialize for IndexUrl
impl Serialize for IndexUrl
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for IndexUrl
Auto Trait Implementations§
impl Freeze for IndexUrl
impl RefUnwindSafe for IndexUrl
impl Send for IndexUrl
impl Sync for IndexUrl
impl Unpin for IndexUrl
impl UnsafeUnpin for IndexUrl
impl UnwindSafe for IndexUrl
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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>
Converts
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>
Converts
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