#[non_exhaustive]pub struct LockedArtifact {
pub uuid: String,
pub revision: u64,
pub artifact_type: String,
pub media_type: String,
pub size: u64,
pub checksums: Vec<LockedChecksum>,
pub integrity: LockedIntegrity,
pub fetched_at: String,
}Expand description
One format of one artifact revision.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.uuid: StringArtifact UUID.
revision: u64Revision number.
artifact_type: StringArtifact type as the server published it (for example BOM).
media_type: StringMedia type of the format.
size: u64Decoded size in bytes, as counted while downloading.
checksums: Vec<LockedChecksum>Declared checksums, sorted.
integrity: LockedIntegrityIntegrity outcome when the lock was written.
fetched_at: StringWhen the bytes were fetched (RFC 3339 UTC with Z). Ignored by
diff, because it changes on every run.
Implementations§
Trait Implementations§
Source§impl Clone for LockedArtifact
impl Clone for LockedArtifact
Source§impl Debug for LockedArtifact
impl Debug for LockedArtifact
Source§impl<'de> Deserialize<'de> for LockedArtifact
impl<'de> Deserialize<'de> for LockedArtifact
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 LockedArtifact
Source§impl PartialEq for LockedArtifact
impl PartialEq for LockedArtifact
Source§impl Serialize for LockedArtifact
impl Serialize for LockedArtifact
impl StructuralPartialEq for LockedArtifact
Auto Trait Implementations§
impl Forget for LockedArtifact
impl Freeze for LockedArtifact
impl Move for LockedArtifact
impl RefUnwindSafe for LockedArtifact
impl Send for LockedArtifact
impl Sync for LockedArtifact
impl Unpin for LockedArtifact
impl UnsafeUnpin for LockedArtifact
impl UnwindSafe for LockedArtifact
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