pub struct RegistryState {
pub status: Status,
pub extensions: Map<String, Value>,
}Expand description
Mutable, registry-derived state returned alongside the Body on retrieval.
In v0.1.0 this contains only status. Future versions add lifecycle
events, relationships, and attestations here without modifying the
Body. Unknown fields are preserved in Self::extensions so consumers
can surface them to operators (RFC-ACDP-0004 §3 forward-compat).
§Reserved extension field names (RFC-ACDP-0009 §2.1)
The following keys are reserved for future RFCs. Until the relevant
RFC ships normative text, v0.1.0 consumers will see them in
Self::extensions (the #[serde(flatten)] map below). v0.1.0
producers MUST NOT emit them.
| Name | RFC | Purpose |
|---|---|---|
lifecycle_events | RFC-ACDP-0009 §2.1 (reserved) | Retraction / republication / status-change audit trail. |
relationships | RFC-ACDP-0009 §2.1 (reserved) | Post-publication builds_on / disputes etc. |
attestations | RFC-ACDP-0009 §2.1 (reserved) | Third-party reproduced / audit markers. |
subscriptions | RFC-ACDP-0009 §2.1 (reserved) | Push-subscription receipts. |
Fields§
§status: Status§extensions: Map<String, Value>Forward-compatible passthrough for fields added in future versions
(e.g. v0.1’s lifecycle_events, relationships, attestations,
subscriptions — see the type docs for the reserved set).
Trait Implementations§
Source§impl Clone for RegistryState
impl Clone for RegistryState
Source§fn clone(&self) -> RegistryState
fn clone(&self) -> RegistryState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RegistryState
impl Debug for RegistryState
Source§impl<'de> Deserialize<'de> for RegistryState
impl<'de> Deserialize<'de> for RegistryState
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
Auto Trait Implementations§
impl Freeze for RegistryState
impl RefUnwindSafe for RegistryState
impl Send for RegistryState
impl Sync for RegistryState
impl Unpin for RegistryState
impl UnsafeUnpin for RegistryState
impl UnwindSafe for RegistryState
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