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

pub struct UpdateIDQuery<'a> { /* fields omitted */ }

Use this for querying bodhi for a specific update by its ID or alias. It will either return an Ok(Some(Update)) matching the specified ID or alias, return Ok(None) if it doesn't exist, or return an Err(QueryError) if another error occurred.

let bodhi = BodhiServiceBuilder::default().build().unwrap();

let update = bodhi.query(UpdateIDQuery::new("FEDORA-2019-3dd0cf468e")).unwrap();

API documentation: https://bodhi.fedoraproject.org/docs/server_api/rest/updates.html#service-0

Methods

impl<'a> UpdateIDQuery<'a>[src]

pub fn new(id: &'a str) -> Self[src]

This method is the only way to create a new UpdateIDQuery instance.

Trait Implementations

impl<'a> Debug for UpdateIDQuery<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for UpdateIDQuery<'a>

impl<'a> Send for UpdateIDQuery<'a>

impl<'a> Sync for UpdateIDQuery<'a>

impl<'a> Unpin for UpdateIDQuery<'a>

impl<'a> UnwindSafe for UpdateIDQuery<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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.