[][src]Struct octocrab::search::QueryHandler

pub struct QueryHandler<'octo, 'query, T> { /* fields omitted */ }

A handler for handling search queries to GitHub.

Implementations

impl<'octo, 'query, T> QueryHandler<'octo, 'query, T>[src]

pub fn sort<S: Into<String>>(self, sort: impl Into<Option<S>>) -> Self[src]

Sets the sort parameter for the query. The exact parameters for this method will vary based on what is being searched.

pub fn order<S: Into<String>>(self, order: impl Into<Option<S>>) -> Self[src]

Sets the order parameter for the query. The exact parameters for this method will vary based on what is being searched.

pub fn per_page(self, per_page: impl Into<u8>) -> Self[src]

Results per page (max 100).

pub fn page(self, page: impl Into<u32>) -> Self[src]

Page number of the results to fetch.

impl<'octo, 'query, T: DeserializeOwned> QueryHandler<'octo, 'query, T>[src]

pub async fn send(self) -> Result<Page<T>>[src]

Send the actual request.

Trait Implementations

impl<'octo, 'query, T: Clone> Clone for QueryHandler<'octo, 'query, T>[src]

impl<'octo, 'query, T: Debug> Debug for QueryHandler<'octo, 'query, T>[src]

impl<'octo, 'query, T> Serialize for QueryHandler<'octo, 'query, T>[src]

Auto Trait Implementations

impl<'octo, 'query, T> !RefUnwindSafe for QueryHandler<'octo, 'query, T>

impl<'octo, 'query, T> Send for QueryHandler<'octo, 'query, T> where
    T: Send

impl<'octo, 'query, T> Sync for QueryHandler<'octo, 'query, T> where
    T: Sync

impl<'octo, 'query, T> Unpin for QueryHandler<'octo, 'query, T> where
    T: Unpin

impl<'octo, 'query, T> !UnwindSafe for QueryHandler<'octo, 'query, T>

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.