[][src]Struct bodhi::query::updates::UpdateQuery

pub struct UpdateQuery { /* fields omitted */ }

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

Methods

impl UpdateQuery[src]

pub fn new() -> UpdateQuery[src]

This method returns a new UpdateQuery with no filters set.

pub fn active_releases(self, active_releases: bool) -> UpdateQuery[src]

Restrict the returned results to (not) active releases.

pub fn aliases(self, alias: String) -> UpdateQuery[src]

Restrict results to updates matching the given alias(es). Can be specified multiple times.

pub fn approved_before(self, approved_before: String) -> UpdateQuery[src]

Restrict the returned results to updates which were approved before the given date and time.

pub fn approved_since(self, approved_since: String) -> UpdateQuery[src]

Restrict the returned results to updates which were approved since the given date and time.

pub fn bugs(self, bug: String) -> UpdateQuery[src]

Restrict results to updates associated with the given bug(s). Can be specified multiple times.

pub fn builds(self, build: String) -> UpdateQuery[src]

Restrict results to updates associated with the given build(s). Can be specified multiple times.

pub fn content_type(self, content_type: ContentType) -> UpdateQuery[src]

Restrict the returned results to the given content type.

pub fn critpath(self, critpath: bool) -> UpdateQuery[src]

Restrict the returned results to updates (not) marked with critpath.

pub fn cves(self, cve: String) -> UpdateQuery[src]

Restrict results to updates associated with the given CVE(s). Can be specified multiple times.

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

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

pub fn locked(self, locked: bool) -> UpdateQuery[src]

Restrict the returned results to (not) locked updates.

pub fn modified_before(self, modified_before: String) -> UpdateQuery[src]

Restrict the returned results to updates which were modified before the given date and time.

pub fn modified_since(self, modified_since: String) -> UpdateQuery[src]

Restrict the returned results to updates which were modified since the given date and time.

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

Restrict results to updates associated for the given package(s). Can be specified multiple times.

pub fn pushed(self, pushed: bool) -> UpdateQuery[src]

Restrict the returned results to (not) pushed updates.

pub fn pushed_before(self, pushed_before: String) -> UpdateQuery[src]

Restrict the returned results to updates which were pushed before the given date and time.

pub fn pushed_since(self, pushed_since: String) -> UpdateQuery[src]

Restrict the returned results to updates which were pushed since the given date and time.

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

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

pub fn request(self, request: UpdateRequest) -> UpdateQuery[src]

Restrict the returned results to updates with the given request.

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

Restrict search to updates containing the given argument.

pub fn severity(self, severity: UpdateSeverity) -> UpdateQuery[src]

Restrict the returned results to updates with the given severity.

pub fn status(self, status: UpdateStatus) -> UpdateQuery[src]

Restrict the returned results to updates with the given status.

pub fn submitted_before(self, submitted_before: String) -> UpdateQuery[src]

Restrict the returned results to updates which were submitted before the given date and time.

pub fn submitted_since(self, submitted_since: String) -> UpdateQuery[src]

Restrict the returned results to updates which were submitted since the given date and time.

pub fn suggest(self, suggest: UpdateSuggestion) -> UpdateQuery[src]

Restrict the returned results to updates with the given "suggest" value.

pub fn update_ids(self, update_id: String) -> UpdateQuery[src]

Restrict results to updates matching the given update ID(s). Can be specified multiple times.

pub fn update_type(self, update_type: UpdateType) -> UpdateQuery[src]

Restrict results to updates matching the given update type.

pub fn users(self, user: String) -> UpdateQuery[src]

Restrict results to updates associated with the given user(s). Can be specified multiple times.

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

Query the remote bodhi instance with the given parameters.

Trait Implementations

impl Default for UpdateQuery[src]

impl Debug for UpdateQuery[src]

Auto Trait Implementations

impl Send for UpdateQuery

impl Sync for UpdateQuery

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