pub struct PackageInstanceId {
pub package: CanonicalPackageId,
pub source: SourceId,
pub version: Option<PackageVersion>,
pub tree_digest: ContentDigest,
pub identity_digest: ContentDigest,
}Fields§
§package: CanonicalPackageId§source: SourceId§version: Option<PackageVersion>§tree_digest: ContentDigest§identity_digest: ContentDigestImplementations§
Source§impl PackageInstanceId
impl PackageInstanceId
pub fn new( package: CanonicalPackageId, source: SourceId, version: Option<PackageVersion>, tree_digest: ContentDigest, ) -> Self
Trait Implementations§
Source§impl Clone for PackageInstanceId
impl Clone for PackageInstanceId
Source§fn clone(&self) -> PackageInstanceId
fn clone(&self) -> PackageInstanceId
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 PackageInstanceId
impl Debug for PackageInstanceId
Source§impl<'de> Deserialize<'de> for PackageInstanceId
impl<'de> Deserialize<'de> for PackageInstanceId
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 Display for PackageInstanceId
impl Display for PackageInstanceId
impl Eq for PackageInstanceId
Source§impl Hash for PackageInstanceId
impl Hash for PackageInstanceId
Source§impl Ord for PackageInstanceId
impl Ord for PackageInstanceId
Source§fn cmp(&self, other: &PackageInstanceId) -> Ordering
fn cmp(&self, other: &PackageInstanceId) -> Ordering
1.21.0 (const: unstable) · 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 for PackageInstanceId
impl PartialEq for PackageInstanceId
Source§impl PartialOrd for PackageInstanceId
impl PartialOrd for PackageInstanceId
Source§impl Serialize for PackageInstanceId
impl Serialize for PackageInstanceId
impl StructuralPartialEq for PackageInstanceId
Auto Trait Implementations§
impl Freeze for PackageInstanceId
impl RefUnwindSafe for PackageInstanceId
impl Send for PackageInstanceId
impl Sync for PackageInstanceId
impl Unpin for PackageInstanceId
impl UnsafeUnpin for PackageInstanceId
impl UnwindSafe for PackageInstanceId
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.