pub enum LifecycleOutcome {
Applied {
series_id: SeriesId,
action: LifecycleAction,
state: SeriesLifecycle,
key: Option<OccurrenceKey>,
detail: String,
},
NoOp {
series_id: SeriesId,
action: LifecycleAction,
message: String,
},
Rejected {
diagnostics: Vec<LifecycleDiagnostic>,
},
}Expand description
The result of one lifecycle action (the outcome matrix T026 asks for).
Variants§
Applied
The action took effect and one History entry was appended.
Fields
§
action: LifecycleActionWhat was applied.
§
state: SeriesLifecycleThe lifecycle state afterwards.
§
key: Option<OccurrenceKey>The occurrence the action was about, when it was about one.
NoOp
The action was already in effect: nothing was written, including no event.
Fields
§
action: LifecycleActionWhat was asked for.
Rejected
The action was refused. Nothing was written.
Fields
§
diagnostics: Vec<LifecycleDiagnostic>Every reason, in the order they were found.
Implementations§
Source§impl LifecycleOutcome
impl LifecycleOutcome
Sourcepub fn is_applied(&self) -> bool
pub fn is_applied(&self) -> bool
Whether the action took effect.
Sourcepub fn is_rejected(&self) -> bool
pub fn is_rejected(&self) -> bool
Whether it was refused.
Trait Implementations§
Source§impl Clone for LifecycleOutcome
impl Clone for LifecycleOutcome
Source§impl Debug for LifecycleOutcome
impl Debug for LifecycleOutcome
impl Eq for LifecycleOutcome
Source§impl PartialEq for LifecycleOutcome
impl PartialEq for LifecycleOutcome
impl StructuralPartialEq for LifecycleOutcome
Auto Trait Implementations§
impl Freeze for LifecycleOutcome
impl RefUnwindSafe for LifecycleOutcome
impl Send for LifecycleOutcome
impl Sync for LifecycleOutcome
impl Unpin for LifecycleOutcome
impl UnsafeUnpin for LifecycleOutcome
impl UnwindSafe for LifecycleOutcome
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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