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§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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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