Trait Query

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

Query made to a client.

Required Methods§

Source

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

Perform a query against the client.

Implementors§

Source§

impl<'a, E, T, C> Query<(Vec<T>, Pagination), C> for SinglePage<'a, E>
where E: Endpoint + Pageable, T: DeserializeOwned, C: Client,

Source§

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