pub struct PublishResponse {
pub ctx_id: CtxId,
pub lineage_id: LineageId,
pub version: u32,
pub created_at: DateTime<Utc>,
pub status: Status,
pub registry_receipt: Option<Value>,
}Expand description
Successful publish response (HTTP 201).
Per acdp-publish-response.schema.json (additionalProperties: false),
the response contains exactly the five registry-assigned fields. It
MUST NOT echo content_hash, the producer’s signature, or any body
field — the producer already submitted those and the response is for
retrieving the assigned identifiers.
Serialize is supported (alongside Deserialize) so CLI/HTTP-binding
layers can echo the response shape back to operators.
Fields§
§ctx_id: CtxIdRegistry-assigned context identifier.
lineage_id: LineageIdLineage identifier (derived from the v1 ctx_id).
version: u32Version of the published context (1 for first-version, prior+1 otherwise).
created_at: DateTime<Utc>Registry’s acceptance timestamp (millisecond precision).
status: StatusLifecycle status. MUST be Active on a successful first-publish.
registry_receipt: Option<Value>Registry-signed publication receipt (ACDP 0.2, RFC-ACDP-0010).
Present when the registry advertises the
acdp-registry-receipts profile; absent from 0.1.0 registries.
Carried as opaque JSON for wire stability — parse with
crate::receipt::RegistryReceipt::from_value.
Trait Implementations§
Source§impl Clone for PublishResponse
impl Clone for PublishResponse
Source§fn clone(&self) -> PublishResponse
fn clone(&self) -> PublishResponse
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more