Trait gitlab::api::Query

source ·
pub trait Query<T, C>
where C: Client,
{ // Required method fn query(&self, client: &C) -> Result<T, ApiError<C::Error>>; }
Expand description

A trait which represents a query which may be made to a GitLab client.

Required Methods§

source

fn query(&self, client: &C) -> Result<T, ApiError<C::Error>>

Perform the query against the client.

Implementors§

source§

impl<E, C> Query<(), C> for Ignore<E>
where E: Endpoint, C: Client,

source§

impl<E, C> Query<Vec<u8>, C> for Raw<E>
where E: Endpoint, C: Client,

source§

impl<E, T, C> Query<Vec<T>, C> for Paged<E>
where E: Endpoint + Pageable, T: DeserializeOwned + 'static, C: Client,

source§

impl<E, T, C> Query<T, C> for E
where E: Endpoint, T: DeserializeOwned, C: Client,