Skip to main content

search_for_user_details_exact

Function search_for_user_details_exact 

Source
pub async fn search_for_user_details_exact(
    conn: &mut PgConnection,
    search: &str,
) -> ModelResult<Vec<UserDetail>>
Expand description

Users whose id or email equals the search term, ignoring case and surrounding whitespace.

At most one row per kind, and cheap enough to answer before search_for_user_details_fuzzy.