Skip to main content

get

Function get 

Source
pub(crate) fn get(db: &Db, id: Uuid) -> Result<Option<Enrolment>>
Expand description

The enrolment id names, or None when no row carries it.

A row that does not decode is an ERROR rather than None: a release that read it as “nothing enrolled” would send the reader to the password path while the enrolment sits right there, unreadable.