Skip to main content

set_primary

Function set_primary 

Source
pub fn set_primary(
    conn: &Connection,
    face_id: i64,
    person_label: &str,
) -> Result<()>
Expand description

Mark one face as the person’s primary (their labeling-page thumbnail), clearing any previous primary in the same transaction so exactly one remains. The target update is guarded by person_label so it can’t steal a face from another person.