pub struct ContextCheckpointPackagePinV1 {
pub package_id: PackageId,
pub version: SemanticVersion,
pub package_digest: Sha256Digest,
}Expand description
A package pinned by the checkpoint.
Fields§
§package_id: PackageIdIdentity of the pinned package.
version: SemanticVersionPinned package version.
package_digest: Sha256DigestContent identity of the pinned package.
Implementations§
Source§impl ContextCheckpointPackagePinV1
impl ContextCheckpointPackagePinV1
Sourcepub fn validate(&self) -> Result<(), ValidationError>
pub fn validate(&self) -> Result<(), ValidationError>
Validate the pinned package identity.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ContextCheckpointPackagePinV1
impl<'de> Deserialize<'de> for ContextCheckpointPackagePinV1
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 ContextCheckpointPackagePinV1
impl StructuralPartialEq for ContextCheckpointPackagePinV1
Auto Trait Implementations§
impl Forget for ContextCheckpointPackagePinV1
impl Freeze for ContextCheckpointPackagePinV1
impl Move for ContextCheckpointPackagePinV1
impl RefUnwindSafe for ContextCheckpointPackagePinV1
impl Send for ContextCheckpointPackagePinV1
impl Sync for ContextCheckpointPackagePinV1
impl Unpin for ContextCheckpointPackagePinV1
impl UnsafeUnpin for ContextCheckpointPackagePinV1
impl UnwindSafe for ContextCheckpointPackagePinV1
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