[−][src]Struct bodhi::query::users::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.
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
Auto Trait Implementations
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Erased for T
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,