pub async fn share_submission(
conn: &mut PgConnection,
exercise_slide_submission_id: Uuid,
created_by: Uuid,
) -> Result<ExerciseSlideSubmissionShare, ControllerError>Expand description
Mints a new share for the given submission; the returned id is the unguessable
token embedded in the shareable URL.
Not idempotent: minting twice creates two independent, individually revocable shares. Callers must have verified that the submission belongs to the user.