Skip to main content

select_enrolment

Function select_enrolment 

Source
pub fn select_enrolment(
    enrolments: &[RegistryEnrolment],
    criteria: EnrolmentCriteria,
) -> Result<&RegistryEnrolment, NoUsableEnrolment>
Expand description

The enrolment to register an attainment against, or why none will do: an accepted one whose credit range carries criteria.credits, preferring one whose study right covers the attainment date, then a degree study right, then one whose activity period covers it, then the latest enrolment.