[−][src]Struct bodhi::query::releases::ReleaseQuery
Use this for querying bodhi about a set of releases with the given properties, which can be specified with the builder pattern. Note that some options can be specified multiple times, and comments 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 releases = bodhi::ReleaseQuery::new() .exclude_archived(true) .query(&bodhi).unwrap();
Methods
impl ReleaseQuery
[src]
pub fn new() -> ReleaseQuery
[src]
This method returns a new ReleaseQuery
with no filters set.
pub fn exclude_archived(self, exclude_archived: bool) -> ReleaseQuery
[src]
Restrict the returned results to (not) archived releases.
pub fn ids(self, id: String) -> ReleaseQuery
[src]
Restrict results to releases with the given ID. Can be specified multiple times.
pub fn name(self, name: String) -> ReleaseQuery
[src]
Restrict results to releases with the given name.
If this is the only required filter, consider using a ReleaseNameQuery
instead.
pub fn packages(self, package: String) -> ReleaseQuery
[src]
Restrict the returned results to releases containing the given package(s). Can be specified multiple times.
pub fn updates(self, update: String) -> ReleaseQuery
[src]
Restrict the returned results to releases matching the given updates(s). Can be specified multiple times.
pub fn query(self, bodhi: &BodhiService) -> Result<Vec<Release>, String>
[src]
Query the remote bodhi instance with the given parameters.
Trait Implementations
Auto Trait Implementations
impl Send for ReleaseQuery
impl Sync for ReleaseQuery
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>,