#[non_exhaustive]pub enum LifecycleEndpoint {
Retract,
Republish,
}Expand description
Which producer lifecycle endpoint (RFC-ACDP-0013 §6) a
ProvenLifecycle was proved for — the endpoint-binding rule
(retracted on /retract, republished on /republish, §6 step 2)
is checked against it during proving.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Retract
POST /contexts/{ctx_id}/retract — accepts only retracted events.
Republish
POST /contexts/{ctx_id}/republish — accepts only republished
events.
Implementations§
Source§impl LifecycleEndpoint
impl LifecycleEndpoint
Sourcepub fn expected_event_type(self) -> LifecycleEventType
pub fn expected_event_type(self) -> LifecycleEventType
The only event_type this endpoint accepts (§6 step 2).
Trait Implementations§
Source§impl Clone for LifecycleEndpoint
impl Clone for LifecycleEndpoint
impl Copy for LifecycleEndpoint
Source§impl Debug for LifecycleEndpoint
impl Debug for LifecycleEndpoint
impl Eq for LifecycleEndpoint
Source§impl Hash for LifecycleEndpoint
impl Hash for LifecycleEndpoint
Source§impl PartialEq for LifecycleEndpoint
impl PartialEq for LifecycleEndpoint
impl StructuralPartialEq for LifecycleEndpoint
Auto Trait Implementations§
impl Freeze for LifecycleEndpoint
impl RefUnwindSafe for LifecycleEndpoint
impl Send for LifecycleEndpoint
impl Sync for LifecycleEndpoint
impl Unpin for LifecycleEndpoint
impl UnsafeUnpin for LifecycleEndpoint
impl UnwindSafe for LifecycleEndpoint
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
Compare self to
key and return true if they are equal.