Skip to main content

find_auto

Function find_auto 

Source
async fn find_auto(
    conn: &mut PgConnection,
    query: &str,
) -> ChatbotResult<(&'static str, Vec<UserDetail>)>
Expand description

Tries interpretations of query in order — UUID, upstream id, email, name — and returns the first one that yields at least one candidate. Falls back to a (possibly empty) name search.