Skip to main content

resend_linking_mail_for_target

Function resend_linking_mail_for_target 

Source
pub async fn resend_linking_mail_for_target(
    ctx: &ManualActionContext<'_>,
    course_id: Uuid,
    student_number: &SecretString,
    rate_cap_override: Option<RateCapOverride<'_>>,
) -> CreditRegistrationResult<ResendAttempt>
Expand description

Shared by the teacher- and admin-facing resend endpoints: refuses a target that is already linked, otherwise reruns the send path exactly as the worker would, applying rate_cap_override, if any, only once the registry has named an address to mail.