Enum webc::v1::PackageInfo
source · pub enum PackageInfo {
External {
name: String,
url: Url,
},
RegistryExternal {
name: String,
id: String,
},
Internal {
dependency_path: String,
name: String,
},
}
Expand description
Information about the package name
Variants§
External
External dependency, ex. "abc": "https://myhost.io/package/abc@1.2.3"
RegistryExternal
External dependency that depends on a registry for resolving the file
URL, ex. "abc": "package/abc@1.2.3"
Internal
Internal (vendored) dependency
Trait Implementations§
source§impl Clone for PackageInfo
impl Clone for PackageInfo
source§fn clone(&self) -> PackageInfo
fn clone(&self) -> PackageInfo
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 Debug for PackageInfo
impl Debug for PackageInfo
source§impl<'de> Deserialize<'de> for PackageInfo
impl<'de> Deserialize<'de> for PackageInfo
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 Ord for PackageInfo
impl Ord for PackageInfo
source§fn cmp(&self, other: &PackageInfo) -> Ordering
fn cmp(&self, other: &PackageInfo) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<PackageInfo> for PackageInfo
impl PartialEq<PackageInfo> for PackageInfo
source§fn eq(&self, other: &PackageInfo) -> bool
fn eq(&self, other: &PackageInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<PackageInfo> for PackageInfo
impl PartialOrd<PackageInfo> for PackageInfo
source§fn partial_cmp(&self, other: &PackageInfo) -> Option<Ordering>
fn partial_cmp(&self, other: &PackageInfo) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for PackageInfo
impl Serialize for PackageInfo
impl Eq for PackageInfo
impl StructuralEq for PackageInfo
impl StructuralPartialEq for PackageInfo
Auto Trait Implementations§
impl RefUnwindSafe for PackageInfo
impl Send for PackageInfo
impl Sync for PackageInfo
impl Unpin for PackageInfo
impl UnwindSafe for PackageInfo
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.