pub struct PublishReceipt {
pub ecosystem: String,
pub package: Option<String>,
pub version: String,
pub registry_url: Option<String>,
pub digest: Option<String>,
}Expand description
The per-target publish receipt the journal persists — the fact “this exact artifact landed” that resume/reconcile checks against the registry (the remote is ground truth, ADR-0003 §4).
Written per target before the next target is attempted, never batched, so an interrupted publish-all leaves an accurate record of exactly what landed. Every descriptive field is optional so an adapter that cannot supply (say) a content digest still records a usable receipt.
Fields§
§ecosystem: StringThe ecosystem the artifact was published to (cargo, npm, …).
package: Option<String>The published package/crate name, when the ecosystem has one.
version: StringThe version string that was published.
registry_url: Option<String>The registry URL of the published artifact, when the adapter reports one.
digest: Option<String>A content digest of the published artifact, when available — the strongest
signal for verify()’s Matches/Conflicts decision on resume.
Trait Implementations§
Source§impl Clone for PublishReceipt
impl Clone for PublishReceipt
Source§fn clone(&self) -> PublishReceipt
fn clone(&self) -> PublishReceipt
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PublishReceipt
impl Debug for PublishReceipt
Source§impl<'de> Deserialize<'de> for PublishReceipt
impl<'de> Deserialize<'de> for PublishReceipt
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>,
impl Eq for PublishReceipt
Source§impl PartialEq for PublishReceipt
impl PartialEq for PublishReceipt
Source§impl Serialize for PublishReceipt
impl Serialize for PublishReceipt
impl StructuralPartialEq for PublishReceipt
Auto Trait Implementations§
impl Freeze for PublishReceipt
impl RefUnwindSafe for PublishReceipt
impl Send for PublishReceipt
impl Sync for PublishReceipt
impl Unpin for PublishReceipt
impl UnsafeUnpin for PublishReceipt
impl UnwindSafe for PublishReceipt
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.