pub struct ArtifactVersion {
pub sha256: String,
pub bytes: u64,
pub committed_at: DateTime<Utc>,
}Expand description
One entry in a named artifact’s version sequence: the
crate::registry::ArtifactCommit discipline (append-only,
content-addressed) applied to bytes. The current version is the
last; older versions are addresses, retained under the same policy.
Wave 1 commits write exactly one entry — the committed object itself — so the slot exists on the wire from the first record and version accumulation (Wave 2) lands as appends, not a shape change.
Fields§
§sha256: StringThe version’s content address (lowercase hex SHA-256 of its bytes).
bytes: u64The version’s size in bytes.
committed_at: DateTime<Utc>When this version joined the sequence.
Trait Implementations§
Source§impl Clone for ArtifactVersion
impl Clone for ArtifactVersion
Source§impl Debug for ArtifactVersion
impl Debug for ArtifactVersion
Source§impl<'de> Deserialize<'de> for ArtifactVersion
impl<'de> Deserialize<'de> for ArtifactVersion
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 ArtifactVersion
Source§impl PartialEq for ArtifactVersion
impl PartialEq for ArtifactVersion
Source§impl Serialize for ArtifactVersion
impl Serialize for ArtifactVersion
impl StructuralPartialEq for ArtifactVersion
Auto Trait Implementations§
impl Freeze for ArtifactVersion
impl RefUnwindSafe for ArtifactVersion
impl Send for ArtifactVersion
impl Sync for ArtifactVersion
impl Unpin for ArtifactVersion
impl UnsafeUnpin for ArtifactVersion
impl UnwindSafe for ArtifactVersion
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