pub struct DownloadJournalRecord { /* private fields */ }Expand description
Maintained v1 local artifact journal bound to a caller-supplied intent digest.
This record neither authenticates that intent nor proves current remote authority.
Implementations§
Source§impl DownloadJournalRecord
impl DownloadJournalRecord
Sourcepub fn resume_view(&self) -> DownloadJournalView
pub fn resume_view(&self) -> DownloadJournalView
Project retained local progress without observing bytes or remote state.
Source§impl DownloadJournalRecord
impl DownloadJournalRecord
Sourcepub fn new(
intent: &str,
requests: Vec<DownloadArtifactRequest>,
) -> Result<Self, DownloadJournalRecordError>
pub fn new( intent: &str, requests: Vec<DownloadArtifactRequest>, ) -> Result<Self, DownloadJournalRecordError>
Admit a nonempty exact physical set before any local transfer completion.
§Errors
Rejects invalid identities/digests, duplicate principals and exceeded count bounds.
Sourcepub fn artifacts(&self) -> &[DownloadArtifactRecord]
pub fn artifacts(&self) -> &[DownloadArtifactRecord]
Read entries in canonical principal-text order.
Sourcepub fn digest(&self) -> ArtifactChecksumRecord
pub fn digest(&self) -> ArtifactChecksumRecord
Hash canonical original intent, exact snapshot metadata, paths and local evidence.
The NUL-terminated v1 domain precedes 64 ASCII intent bytes and a big-endian u64 entry count. Each canonical entry has four u32-length-prefixed UTF-8 strings (principal, snapshot token, staging path, artifact path), two u64 metadata values, a state byte (Created=0 through Durable=3), then a checksum presence byte and its 64 ASCII hash when present. Integers are big-endian. This grants no transfer, snapshot authenticity or terminal proof.