[][src]Module bodhi::query::users

The contents of this module can be used to query a bodhi instance about the user accounts it knows.

The UserNameQuery returns exactly one User, if and only if a User with this username exists - otherwise, it will return an error.

The UserQuery can be used to execute more complex queries, for example filtering users by the groups they are members of, or querying for users that are associated with a given set of updates.

Structs

UserNameQuery

Use this for querying bodhi for a specific user by their name. It will either return an Ok(User) matching the specified name, return Ok(None) if it doesn't exist, or return an Err(QueryError) if another error occurred.

UserQuery

Use this for querying bodhi about a set of users with the given properties, which can be specified with the builder pattern. Note that some options can be specified multiple times, and users will be returned if any criteria match. This is consistent with both the web interface and REST API behavior.