pub struct PackageKey {
pub ecosystem: String,
pub name: String,
pub version: Option<String>,
}Expand description
A key identifying a package for batch queries.
Fields§
§ecosystem: StringPackage ecosystem (e.g., “npm”, “PyPI”).
name: StringPackage name.
version: Option<String>Optional version for matching.
Implementations§
Trait Implementations§
Source§impl Clone for PackageKey
impl Clone for PackageKey
Source§fn clone(&self) -> PackageKey
fn clone(&self) -> PackageKey
Returns a duplicate 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 PackageKey
impl Debug for PackageKey
Source§impl Hash for PackageKey
impl Hash for PackageKey
Source§impl PartialEq for PackageKey
impl PartialEq for PackageKey
impl Eq for PackageKey
impl StructuralPartialEq for PackageKey
Auto Trait Implementations§
impl Freeze for PackageKey
impl RefUnwindSafe for PackageKey
impl Send for PackageKey
impl Sync for PackageKey
impl Unpin for PackageKey
impl UnwindSafe for PackageKey
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,
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.