pub enum KeepsakeError {
EmptyIdentifier {
field: &'static str,
},
InvalidFulfillmentThreshold,
RelationDisabled {
relation_id: Uuid,
},
DuplicateActiveKeepsake {
subject_kind: String,
subject_id: String,
relation_id: Uuid,
},
InvalidKeepsakeLifecycle {
reason: &'static str,
},
ActiveRelationMismatch {
keepsake_relation_id: Uuid,
relation_id: Uuid,
},
InactiveActiveRelation {
keepsake_id: Uuid,
},
}Expand description
Errors returned by the core model contracts.
Variants§
EmptyIdentifier
A caller supplied an empty identifier.
InvalidFulfillmentThreshold
A fulfillment policy cannot be satisfied because its threshold is invalid.
RelationDisabled
A command targets a disabled relation.
DuplicateActiveKeepsake
A caller tried to apply a relation that is already active for a subject.
Fields
InvalidKeepsakeLifecycle
A flat keepsake record did not satisfy lifecycle invariants.
ActiveRelationMismatch
An active relation paired a keepsake with the wrong relation definition.
Fields
InactiveActiveRelation
An active relation was built from a non-active keepsake.
Trait Implementations§
Source§impl Clone for KeepsakeError
impl Clone for KeepsakeError
Source§fn clone(&self) -> KeepsakeError
fn clone(&self) -> KeepsakeError
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 KeepsakeError
impl Debug for KeepsakeError
Source§impl Display for KeepsakeError
impl Display for KeepsakeError
impl Eq for KeepsakeError
Source§impl Error for KeepsakeError
impl Error for KeepsakeError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for KeepsakeError
impl PartialEq for KeepsakeError
impl StructuralPartialEq for KeepsakeError
Auto Trait Implementations§
impl Freeze for KeepsakeError
impl RefUnwindSafe for KeepsakeError
impl Send for KeepsakeError
impl Sync for KeepsakeError
impl Unpin for KeepsakeError
impl UnsafeUnpin for KeepsakeError
impl UnwindSafe for KeepsakeError
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