[−][src]Struct bodhi::query::overrides::OverrideQuery
Use this for querying bodhi about a set of overrides with the given properties, which can be specified with the builder pattern. Note that some options can be specified multiple times, and overrides 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 overrides = bodhi::OverrideQuery::new() .releases(String::from("F29")) .users(String::from("decathorpe")) .query(&bodhi).unwrap();
Methods
impl OverrideQuery
[src]
pub fn new() -> OverrideQuery
[src]
This method returns a new OverrideQuery
with no filters set.
pub fn builds(self, build: String) -> OverrideQuery
[src]
Restrict the returned results to overrides for the given build(s). Can be specified multiple times.
pub fn expired(self, expired: bool) -> OverrideQuery
[src]
Restrict the returned results to (not) expired overrides.
pub fn like(self, like: String) -> OverrideQuery
[src]
Restrict search to overrides like the given argument (in the SQL sense).
pub fn packages(self, package: String) -> OverrideQuery
[src]
Restrict the returned results to overrides for the given package(s). Can be specified multiple times.
pub fn releases(self, release: String) -> OverrideQuery
[src]
Restrict the returned results to overrides for the given release(s). Can be specified multiple times.
pub fn search(self, search: String) -> OverrideQuery
[src]
Restrict search to overrides containing the given argument.
pub fn users(self, user: String) -> OverrideQuery
[src]
Restrict the returned results to overrides created by the given user(s). Can be specified multiple times.
pub fn query(self, bodhi: &BodhiService) -> Result<Vec<Override>, String>
[src]
Query the remote bodhi instance with the given parameters.
Trait Implementations
impl Default for OverrideQuery
[src]
fn default() -> OverrideQuery
[src]
impl Debug for OverrideQuery
[src]
Auto Trait Implementations
impl Send for OverrideQuery
impl Sync for OverrideQuery
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>,