[][src]Struct bodhi::query::users::UserQuery

pub struct UserQuery { /* fields omitted */ }

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.

let bodhi = bodhi::BodhiService::new(String::from(bodhi::FEDORA_BODHI_URL));

let users = bodhi::UserQuery::new()
    .groups(String::from("provenpackager"))
    .query(&bodhi).unwrap();

Methods

impl UserQuery[src]

pub fn new() -> UserQuery[src]

This method returns a new UserQuery with no filters set.

pub fn groups(self, group: String) -> UserQuery[src]

Restrict the returned results to members of the given group(s). Can be specified multiple times.

pub fn like(self, like: String) -> UserQuery[src]

Restrict search to users like the given argument (in the SQL sense).

pub fn name(self, name: String) -> UserQuery[src]

Restrict results to users with the given username. If this is the only required filter, consider using a UserNameQuery instead.

pub fn packages(self, package: String) -> UserQuery[src]

Restrict the returned results to users associated with the given package(s). Can be specified multiple times.

pub fn search(self, search: String) -> UserQuery[src]

Restrict search to users containing the given argument.

pub fn updates(self, update: String) -> UserQuery[src]

Restrict the returned results to users associated with the given update(s). Can be specified multiple times.

pub fn query(self, bodhi: &BodhiService) -> Result<Vec<User>, String>[src]

Query the remote bodhi instance with the given parameters.

Trait Implementations

impl Default for UserQuery[src]

impl Debug for UserQuery[src]

Auto Trait Implementations

impl Send for UserQuery

impl Sync for UserQuery

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err