pub struct LockFileDep {
pub name: EntryName,
pub spec: Option<GitDependency>,
}Fields§
§name: EntryName§spec: Option<GitDependency>For git packages, we store their original git spec in the lock-file, so that if someone changes the spec in the manifest we can tell that we need to re-fetch the repo.
Note that this goes in LockFileDep (which represents the dependency
edge between two entries) rather than LockFileEntry because there can
be multiple git specs that end up resolving to the same git revision.
Trait Implementations§
Source§impl Clone for LockFileDep
impl Clone for LockFileDep
Source§fn clone(&self) -> LockFileDep
fn clone(&self) -> LockFileDep
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 LockFileDep
impl Debug for LockFileDep
Source§impl<'de> Deserialize<'de> for LockFileDep
impl<'de> Deserialize<'de> for LockFileDep
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
impl Eq for LockFileDep
Source§impl Ord for LockFileDep
impl Ord for LockFileDep
Source§fn cmp(&self, other: &LockFileDep) -> Ordering
fn cmp(&self, other: &LockFileDep) -> 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 LockFileDep
impl PartialEq for LockFileDep
Source§fn eq(&self, other: &LockFileDep) -> bool
fn eq(&self, other: &LockFileDep) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for LockFileDep
impl PartialOrd for LockFileDep
Source§impl Serialize for LockFileDep
impl Serialize for LockFileDep
impl StructuralPartialEq for LockFileDep
Auto Trait Implementations§
impl Freeze for LockFileDep
impl RefUnwindSafe for LockFileDep
impl Send for LockFileDep
impl Sync for LockFileDep
impl Unpin for LockFileDep
impl UnsafeUnpin for LockFileDep
impl UnwindSafe for LockFileDep
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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> ErasedDestructor for Twhere
T: 'static,
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