pub(crate) struct Decision<'a> {
pub outcome: Outcome,
pub message: Option<String>,
pub row_error: Option<&'a str>,
pub pre_transition: PreTransitionChanges<'a>,
pub atomic: AtomicChanges<'a>,
}Expand description
What one answer does to its row: the move, the timeline line and error that go with it, and the
writes it asks for, grouped by whether they outlive a lost race. The exchange behind the answer
is the caller’s crate::registry::ExchangeAudit, not part of the decision.
Fields§
§outcome: Outcome§message: Option<String>The timeline line for the move.
row_error: Option<&'a str>The item’s own error, or a refused request’s, persisted on the row once scrubbed.
pre_transition: PreTransitionChanges<'a>§atomic: AtomicChanges<'a>Implementations§
Source§impl<'a> Decision<'a>
impl<'a> Decision<'a>
pub(crate) fn new(outcome: Outcome) -> Self
pub(crate) fn with_message(self, message: impl Into<String>) -> Self
pub(crate) fn with_row_error(self, row_error: Option<&'a str>) -> Self
Sourcepub(crate) fn with_submitted_attainment(
self,
submission: Option<&'a SubmittedAttainmentRef>,
) -> Self
pub(crate) fn with_submitted_attainment( self, submission: Option<&'a SubmittedAttainmentRef>, ) -> Self
The submission an import answer named, and its attainment type.
Sourcepub(crate) fn with_sisu_attainment(
self,
attainment: Option<&'a RegistryAttainment>,
) -> Self
pub(crate) fn with_sisu_attainment( self, attainment: Option<&'a RegistryAttainment>, ) -> Self
The Sisu attainment that settles the row.
Sourcepub(crate) fn with_resubmit_not_before(
self,
resubmit_not_before: Option<DateTime<Utc>>,
) -> Self
pub(crate) fn with_resubmit_not_before( self, resubmit_not_before: Option<DateTime<Utc>>, ) -> Self
Suotar’s own bound on when resending becomes safe.
pub(crate) fn with_payload(self, payload: PayloadChange) -> Self
pub(crate) fn with_enrolment_check( self, check: Option<EnrolmentCheckAnswer<'a>>, ) -> Self
Auto Trait Implementations§
impl<'a> Freeze for Decision<'a>
impl<'a> RefUnwindSafe for Decision<'a>
impl<'a> Send for Decision<'a>
impl<'a> Sync for Decision<'a>
impl<'a> Unpin for Decision<'a>
impl<'a> UnsafeUnpin for Decision<'a>
impl<'a> UnwindSafe for Decision<'a>
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<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ServiceExt for T
impl<T> ServiceExt for T
§fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
Apply a transformation to the response body. Read more
§fn decompression(self) -> Decompression<Self>where
Self: Sized,
fn decompression(self) -> Decompression<Self>where
Self: Sized,
Decompress response bodies. Read more
§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using HTTP status codes. Read more
§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using gRPC headers. Read more