#[non_exhaustive]pub enum ServerOperationOutcome {
Accepted(Vec<u8>),
BusinessRejected {
code: Arc<str>,
},
Conflict {
reason: Arc<str>,
},
}Expand description
Stable server-side operation outcome. Business rejection is not a system failure.
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.
Accepted(Vec<u8>)
Authority committed the accepted handler result.
BusinessRejected
Domain business rules rejected the intent.
Conflict
Domain requested explicit conflict resolution.
Trait Implementations§
Source§impl Clone for ServerOperationOutcome
impl Clone for ServerOperationOutcome
Source§impl Debug for ServerOperationOutcome
impl Debug for ServerOperationOutcome
impl Eq for ServerOperationOutcome
Source§impl PartialEq for ServerOperationOutcome
impl PartialEq for ServerOperationOutcome
impl StructuralPartialEq for ServerOperationOutcome
Auto Trait Implementations§
impl Freeze for ServerOperationOutcome
impl RefUnwindSafe for ServerOperationOutcome
impl Send for ServerOperationOutcome
impl Sync for ServerOperationOutcome
impl Unpin for ServerOperationOutcome
impl UnsafeUnpin for ServerOperationOutcome
impl UnwindSafe for ServerOperationOutcome
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more