pub struct ArtifactCommit {
pub candidate_id: CandidateId,
pub committed_at: DateTime<Utc>,
}Expand description
One entry in an artifact’s commit sequence: a candidate id and the
instant it joined the history. Authorship is deliberately not
repeated here — the candidate carries its own distilled_by, and
repeating it would give one fact two homes. The sequence is
append-only: a commit, like the candidate it names, is immutable.
Fields§
§candidate_id: CandidateIdThe committed candidate (its content address).
committed_at: DateTime<Utc>When the commit joined this artifact’s history — which may be
later than the candidate’s own created_at (distillation and
registry authorship are separate acts).
Trait Implementations§
Source§impl Clone for ArtifactCommit
impl Clone for ArtifactCommit
Source§impl Debug for ArtifactCommit
impl Debug for ArtifactCommit
Source§impl<'de> Deserialize<'de> for ArtifactCommit
impl<'de> Deserialize<'de> for ArtifactCommit
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 ArtifactCommit
Source§impl PartialEq for ArtifactCommit
impl PartialEq for ArtifactCommit
Source§impl Serialize for ArtifactCommit
impl Serialize for ArtifactCommit
impl StructuralPartialEq for ArtifactCommit
Auto Trait Implementations§
impl Freeze for ArtifactCommit
impl RefUnwindSafe for ArtifactCommit
impl Send for ArtifactCommit
impl Sync for ArtifactCommit
impl Unpin for ArtifactCommit
impl UnsafeUnpin for ArtifactCommit
impl UnwindSafe for ArtifactCommit
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