[][src]Struct bodhi::query::builds::BuildQuery

pub struct BuildQuery { /* fields omitted */ }

Use this for querying bodhi about a set of builds with the given properties, which can be specified with the builder pattern. Note that some options can be specified multiple times, and builds 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 builds = bodhi::BuildQuery::new()
    .releases(String::from("F30"))
    .releases(String::from("F29"))
    .packages(String::from("rust"))
    .query(&bodhi).unwrap();

Methods

impl BuildQuery[src]

pub fn new() -> BuildQuery[src]

This method returns a new BuildQuery with no filters set.

pub fn nvr(self, nvr: String) -> BuildQuery[src]

Restrict the returned results to builds with the given NVR. If this is the only required filter, consider using a BuildNVRQuery instead.

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

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

pub fn releases(self, release: String) -> BuildQuery[src]

Restrict the returned results to builds for the given release(s). Can be specified multiple times.

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

Restrict the returned results to builds for the given update(s). Can be specified multiple times.

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

Query the remote bodhi instance with the given parameters.

Trait Implementations

impl Default for BuildQuery[src]

impl Debug for BuildQuery[src]

Auto Trait Implementations

impl Send for BuildQuery

impl Sync for BuildQuery

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