Skip to main content

Module find_user

Module find_user 

Source

Structsยง

FindUserArguments
FindUserOutput ๐Ÿ”’
FindUserState
RawFindUserArguments ๐Ÿ”’
UserCandidateOutput ๐Ÿ”’

Enumsยง

FindUserKind ๐Ÿ”’

Constantsยง

MAX_CANDIDATES ๐Ÿ”’
MIN_FUZZY_QUERY_LENGTH ๐Ÿ”’

Functionsยง

build_arguments ๐Ÿ”’
find_auto ๐Ÿ”’
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.
find_by_upstream_id ๐Ÿ”’
Looks up one user by upstream_id, rejecting a query that is not an integer.
find_by_user_id ๐Ÿ”’
Looks up one user by user_id, rejecting a query that is not a valid UUID.

Type Aliasesยง

FindUserTool