pub enum LifecycleEventType {
Retracted,
Republished,
Other(String),
}Expand description
The lifecycle event kind — an open vocabulary
(registries/lifecycle-event-types.md): v1 registers retracted
and republished; unknown values matching the RFC-ACDP-0004 §4.1
pattern (^[a-z][a-z0-9_]*$, 1–64 chars) are tolerated with no
effect on retraction state and round-trip verbatim — mirroring how
Status handles unknown
values. Registries MUST NOT accept unregistered values through the
RFC-ACDP-0013 §6 endpoints in 0.3.0 (§7.3): openness is for future
versions and consumers, not a free-form producer channel.
Variants§
Retracted
retracted — the context is formally withdrawn from reliance;
status becomes retracted (dominating superseded and
expired, RFC-ACDP-0013 §7.2).
Republished
republished — a prior retraction is reversed; status
re-derives per RFC-ACDP-0004 §4 as though never retracted. Both
events remain in the append-only history.
Other(String)
An event type this version of the library does not recognize. Per RFC-ACDP-0013 §7.3: tolerate, preserve verbatim, no effect on retraction state until upgrade.
Implementations§
Source§impl LifecycleEventType
impl LifecycleEventType
Sourcepub fn parse(s: &str) -> Result<Self, AcdpError>
pub fn parse(s: &str) -> Result<Self, AcdpError>
Parse an event-type string, validating the pattern. Values that do not match the pattern are malformed registry state and are rejected (RFC-ACDP-0013 §7.3).
Sourcepub fn is_registered(&self) -> bool
pub fn is_registered(&self) -> bool
True for the v1 registered vocabulary (retracted /
republished) — the only values registries may accept through
the RFC-ACDP-0013 §6 endpoints in 0.3.0 (§7.3).
Trait Implementations§
Source§impl Clone for LifecycleEventType
impl Clone for LifecycleEventType
Source§fn clone(&self) -> LifecycleEventType
fn clone(&self) -> LifecycleEventType
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 LifecycleEventType
impl Debug for LifecycleEventType
Source§impl<'de> Deserialize<'de> for LifecycleEventType
impl<'de> Deserialize<'de> for LifecycleEventType
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Source§impl Display for LifecycleEventType
impl Display for LifecycleEventType
impl Eq for LifecycleEventType
Source§impl PartialEq for LifecycleEventType
impl PartialEq for LifecycleEventType
Source§fn eq(&self, other: &LifecycleEventType) -> bool
fn eq(&self, other: &LifecycleEventType) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for LifecycleEventType
impl Serialize for LifecycleEventType
impl StructuralPartialEq for LifecycleEventType
Auto Trait Implementations§
impl Freeze for LifecycleEventType
impl RefUnwindSafe for LifecycleEventType
impl Send for LifecycleEventType
impl Sync for LifecycleEventType
impl Unpin for LifecycleEventType
impl UnsafeUnpin for LifecycleEventType
impl UnwindSafe for LifecycleEventType
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.