Skip to main content

get_answer_kind

Function get_answer_kind 

Source
pub async fn get_answer_kind(
    conn: &mut PgConnection,
    id: Uuid,
) -> ModelResult<AnswerKind>
Expand description

Which representation holds a submission’s answer.

Cheaper than get_by_id when only the discriminant matters, and unlike the resolved AnswerData it reports the stored column rather than what the rows resolve to.