Skip to main content

AttentionRegistration

Struct AttentionRegistration 

Source
pub struct AttentionRegistration {
Show 38 fields pub id: Uuid, pub user_id: Uuid, pub first_name: Option<String>, pub last_name: Option<String>, pub email: Option<String>, pub course_id: Uuid, pub course_name: String, pub course_module_id: Uuid, pub course_module_name: Option<String>, pub uh_course_code: Option<String>, pub course_module_completion_id: Uuid, pub completion_date: DateTime<Utc>, pub state: CreditRegistrationState, pub state_changed_at: DateTime<Utc>, pub phase_started_at: DateTime<Utc>, pub error_code: Option<CreditRegistrationErrorCode>, pub attempt_count: i32, pub needs_admin_attention: bool, pub next_attempt_at: DateTime<Utc>, pub submitted_at: Option<DateTime<Utc>>, pub resubmit_not_before: Option<DateTime<Utc>>, pub student_number: Option<DbSecret>, pub completion_eligible: bool, pub has_verified_student_number: bool, pub course_code_allowed: bool, pub enrolment_resolved: bool, pub pressed_at: Option<DateTime<Utc>>, pub enrolment_route: Option<CreditRegistrationEnrolmentRoute>, pub last_visited_at: Option<DateTime<Utc>>, pub last_mailing_fetch_started_at: Option<DateTime<Utc>>, pub is_enrolment_list_empty: bool, pub reasons: Vec<AttentionReason>, pub dismissed_reasons: Option<Vec<AttentionReason>>, pub dismissed_at: Option<DateTime<Utc>>, pub dismissed_by_user_id: Option<Uuid>, pub dismissed_by_first_name: Option<String>, pub dismissed_by_last_name: Option<String>, pub dismissal_reason: Option<String>,
}
Expand description

One live row at least one detector picked.

Fields§

§id: Uuid§user_id: Uuid§first_name: Option<String>§last_name: Option<String>§email: Option<String>§course_id: Uuid§course_name: String§course_module_id: Uuid§course_module_name: Option<String>§uh_course_code: Option<String>

The module’s code now, trimmed; not the one frozen on the row.

§course_module_completion_id: Uuid§completion_date: DateTime<Utc>§state: CreditRegistrationState§state_changed_at: DateTime<Utc>§phase_started_at: DateTime<Utc>§error_code: Option<CreditRegistrationErrorCode>§attempt_count: i32§needs_admin_attention: bool

The pipeline’s own flag. On its own it is only AttentionReason::FlaggedByPipeline.

§next_attempt_at: DateTime<Utc>§submitted_at: Option<DateTime<Utc>>§resubmit_not_before: Option<DateTime<Utc>>§student_number: Option<DbSecret>§completion_eligible: bool§has_verified_student_number: bool§course_code_allowed: bool§enrolment_resolved: bool§pressed_at: Option<DateTime<Utc>>

The student’s latest “I have enrolled” press.

§enrolment_route: Option<CreditRegistrationEnrolmentRoute>§last_visited_at: Option<DateTime<Utc>>§last_mailing_fetch_started_at: Option<DateTime<Utc>>

When the code’s latest fetch that could claim linking mail started.

§is_enrolment_list_empty: bool

The code’s last enrolment list listed nobody.

§reasons: Vec<AttentionReason>§dismissed_reasons: Option<Vec<AttentionReason>>§dismissed_at: Option<DateTime<Utc>>§dismissed_by_user_id: Option<Uuid>§dismissed_by_first_name: Option<String>§dismissed_by_last_name: Option<String>§dismissal_reason: Option<String>

Implementations§

Source§

impl AttentionRegistration

Source

pub fn resubmission_facts(&self) -> ResubmissionFacts

What decides whether a human may move this row; see ResubmissionFacts. The queue never holds a superseded row.

Source

pub fn position(&self) -> TimelinePosition

Where the row stands on the admin timeline.

Source

pub fn needs_course_setup(&self) -> bool

Source

pub fn blocking_problem( &self, problems: &BlockingProblems, ) -> Option<BlockingProblem>

The problem that accounts for every reason this row carries, if one does.

Source

pub fn is_dismissed(&self) -> bool

A dismissal holds while every reason the row carries is one it covered.

Source

pub fn standing(&self, problems: &BlockingProblems) -> AttentionStanding

Which Needs attention section the row is listed in under problems.

Trait Implementations§

Source§

impl Clone for AttentionRegistration

Source§

fn clone(&self) -> AttentionRegistration

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for AttentionRegistration

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FutureExt for T

§

fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
§

fn with_current_context(self) -> WithContext<Self> ⓘ

Attaches the current Context to this type, returning a WithContext wrapper. Read more
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

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

§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
§

impl<L> LayerExt<L> for L

§

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 T
where T: ?Sized,

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
§

impl<T> ServiceExt for T

§

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,

Decompress response bodies. Read more
§

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,

High level tracing that classifies responses using gRPC headers. Read more
§

fn follow_redirects(self) -> FollowRedirect<Self>
where Self: Sized,

Follow redirect resposes using the Standard policy. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,