pub struct HubProvenance {
pub name: String,
pub version: String,
pub manifest_digest: Option<String>,
}Expand description
Identity of the hub package a git source was resolved from.
Fields§
§name: StringIndex key (namespace/name).
version: StringResolved version.
manifest_digest: Option<String>Digest of the index entry’s manifest at lock time. The commit hash pins
the source tree, but the entrypoint, build command, and typed contract
(inputs/outputs/types) all live in the (mutable) index entry — so a
rewritten entry could change any of them for an already-pinned version.
--locked hard-errors if this digest no longer matches. Option for
back-compat with lockfiles written before this field existed.
Trait Implementations§
Source§impl Clone for HubProvenance
impl Clone for HubProvenance
Source§fn clone(&self) -> HubProvenance
fn clone(&self) -> HubProvenance
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 HubProvenance
impl Debug for HubProvenance
Source§impl<'de> Deserialize<'de> for HubProvenance
impl<'de> Deserialize<'de> for HubProvenance
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 HubProvenance
Source§impl PartialEq for HubProvenance
impl PartialEq for HubProvenance
Source§impl Serialize for HubProvenance
impl Serialize for HubProvenance
impl StructuralPartialEq for HubProvenance
Auto Trait Implementations§
impl Freeze for HubProvenance
impl RefUnwindSafe for HubProvenance
impl Send for HubProvenance
impl Sync for HubProvenance
impl Unpin for HubProvenance
impl UnsafeUnpin for HubProvenance
impl UnwindSafe for HubProvenance
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.