pub struct DependencyEntry {
pub source: ResolvedSource,
pub checksum: Option<ContentHash>,
pub signer: Option<VerifyingKey>,
pub dependencies: DependencyMap,
}Expand description
One entry in a DependencyMap.
Fields§
§source: ResolvedSourceThe resolved source for the dependency.
checksum: Option<ContentHash>The module’s content hash.
Required for Git sources and absent for local path sources, whose content is read as-is at execution time and carries no checksum.
signer: Option<VerifyingKey>The signer’s public key, if the module was signed at lock time.
Absent for unsigned modules and for local path sources, which are not subject to signature verification.
dependencies: DependencyMapThe module’s transitive dependencies.
Implementations§
Source§impl DependencyEntry
impl DependencyEntry
Sourcepub fn source_path(&self) -> Option<&str>
pub fn source_path(&self) -> Option<&str>
Returns the sub-path within the source.
Sourcepub fn git_selector(&self) -> Option<&GitSelector>
pub fn git_selector(&self) -> Option<&GitSelector>
Returns the Git selector.
Trait Implementations§
Source§impl Clone for DependencyEntry
impl Clone for DependencyEntry
Source§fn clone(&self) -> DependencyEntry
fn clone(&self) -> DependencyEntry
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 DependencyEntry
impl Debug for DependencyEntry
Source§impl<'de> Deserialize<'de> for DependencyEntry
impl<'de> Deserialize<'de> for DependencyEntry
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 DependencyEntry
Source§impl PartialEq for DependencyEntry
impl PartialEq for DependencyEntry
Source§impl Serialize for DependencyEntry
impl Serialize for DependencyEntry
impl StructuralPartialEq for DependencyEntry
Auto Trait Implementations§
impl Freeze for DependencyEntry
impl RefUnwindSafe for DependencyEntry
impl Send for DependencyEntry
impl Sync for DependencyEntry
impl Unpin for DependencyEntry
impl UnsafeUnpin for DependencyEntry
impl UnwindSafe for DependencyEntry
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§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.