pub enum SupersessionReason {
NotFound,
LineageMismatch,
VersionMismatch,
AlreadySuperseded,
CrossRegistrySupersessionUnsupported,
LineageWalkFailed,
Other,
}Expand description
Sub-reason for AcdpError::SupersededTarget. Mirrors the
details.reason values defined by acdp-error.schema.json.
Variants§
NotFound
The supersedes target context does not exist on this registry.
LineageMismatch
The target’s lineage_id differs from the new publication’s lineage.
VersionMismatch
The new version is not exactly previous.version + 1.
AlreadySuperseded
The target has already been superseded by a different version.
CrossRegistrySupersessionUnsupported
The target lives on a different registry; v0.1.0 only allows same-registry supersession.
LineageWalkFailed
The lineage walk through supersedes failed because an
intermediate context could not be retrieved (RFC-ACDP-0001 §5.6.1).
Other
A reason this version of the library does not recognize.
Trait Implementations§
Source§impl Clone for SupersessionReason
impl Clone for SupersessionReason
Source§fn clone(&self) -> SupersessionReason
fn clone(&self) -> SupersessionReason
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 SupersessionReason
impl Debug for SupersessionReason
Source§impl<'de> Deserialize<'de> for SupersessionReason
impl<'de> Deserialize<'de> for SupersessionReason
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
impl Eq for SupersessionReason
Source§impl PartialEq for SupersessionReason
impl PartialEq for SupersessionReason
Source§fn eq(&self, other: &SupersessionReason) -> bool
fn eq(&self, other: &SupersessionReason) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SupersessionReason
impl Serialize for SupersessionReason
impl StructuralPartialEq for SupersessionReason
Auto Trait Implementations§
impl Freeze for SupersessionReason
impl RefUnwindSafe for SupersessionReason
impl Send for SupersessionReason
impl Sync for SupersessionReason
impl Unpin for SupersessionReason
impl UnsafeUnpin for SupersessionReason
impl UnwindSafe for SupersessionReason
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,
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
Compare self to
key and return true if they are equal.