pub struct TransitionOutcome {
pub request_id: Uuid,
pub from_stage_id: Option<Uuid>,
pub to_stage_id: Uuid,
pub close_date: Option<NaiveDate>,
pub spawned_successor_id: Option<Uuid>,
pub already: bool,
}Expand description
The outcome of a stage transition. already: true means the request was at the target stage (or a
concurrent transition won) — nothing changed and nothing spawned.
Fields§
§request_id: Uuid§from_stage_id: Option<Uuid>§to_stage_id: Uuid§close_date: Option<NaiveDate>The request’s close_date after the move (Some(today) iff the target stage is done).
spawned_successor_id: Option<Uuid>§already: boolTrait Implementations§
Source§impl Clone for TransitionOutcome
impl Clone for TransitionOutcome
Source§impl Debug for TransitionOutcome
impl Debug for TransitionOutcome
Source§impl PartialEq for TransitionOutcome
impl PartialEq for TransitionOutcome
impl StructuralPartialEq for TransitionOutcome
Auto Trait Implementations§
impl Freeze for TransitionOutcome
impl RefUnwindSafe for TransitionOutcome
impl Send for TransitionOutcome
impl Sync for TransitionOutcome
impl Unpin for TransitionOutcome
impl UnsafeUnpin for TransitionOutcome
impl UnwindSafe for TransitionOutcome
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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