[][src]Struct octocrab::search::SearchHandler

pub struct SearchHandler<'octo> { /* fields omitted */ }

Handler for the search API.

Created with Octocrab::search.

Implementations

impl<'octo> SearchHandler<'octo>[src]

pub fn repositories<'query>(
    self,
    query: &'query impl AsRef<str> + ?Sized
) -> QueryHandler<'octo, 'query, Repository>
[src]

Searches for all the repositories matching the search query.

let page = octocrab::instance()
    .search()
    .repositories("tetris language:rust")
    .sort("stars")
    .order("desc")
    .send()
    .await?;

pub fn commits<'query>(
    self,
    query: &'query impl AsRef<str> + ?Sized
) -> QueryHandler<'octo, 'query, Commit>
[src]

Searches for all the commits matching the search query.

let page = octocrab::instance()
    .search()
    .commits("hello world repo:XAMPPRocky/octocrab")
    .sort("author-date")
    .order("desc")
    .send()
    .await?;

pub fn users<'query>(
    self,
    query: &'query impl AsRef<str> + ?Sized
) -> QueryHandler<'octo, 'query, User>
[src]

Searches for all users matching the search query.

let page = octocrab::instance()
    .search()
    .users("bors type:user")
    .sort("followers")
    .order("desc")
    .send()
    .await?;

pub fn issues_and_pull_requests<'query>(
    self,
    query: &'query impl AsRef<str> + ?Sized
) -> QueryHandler<'octo, 'query, Issue>
[src]

Searches for all the issues matching the search query.

let page = octocrab::instance()
    .search()
    .issues_and_pull_requests("GitHub Octocrab in:readme user:ferris")
    .sort("comments")
    .order("asc")
    .send()
    .await?;

pub fn code<'query>(
    self,
    query: &'query impl AsRef<str> + ?Sized
) -> QueryHandler<'octo, 'query, Code>
[src]

Searches for all code matching the search query.

let page = octocrab::instance()
    .search()
    .code("println! language:rust repo:rust-lang/rust")
    .sort("indexed")
    .order("asc")
    .send()
    .await?;

Auto Trait Implementations

impl<'octo> !RefUnwindSafe for SearchHandler<'octo>[src]

impl<'octo> Send for SearchHandler<'octo>[src]

impl<'octo> Sync for SearchHandler<'octo>[src]

impl<'octo> Unpin for SearchHandler<'octo>[src]

impl<'octo> !UnwindSafe for SearchHandler<'octo>[src]

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> Instrument for T[src]

impl<T> Instrument 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.