[−][src]Struct octocrab::search::SearchHandler
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]
self,
query: &'query impl AsRef<str> + ?Sized
) -> QueryHandler<'octo, 'query, Repository>
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]
self,
query: &'query impl AsRef<str> + ?Sized
) -> QueryHandler<'octo, 'query, Commit>
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]
self,
query: &'query impl AsRef<str> + ?Sized
) -> QueryHandler<'octo, 'query, User>
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]
self,
query: &'query impl AsRef<str> + ?Sized
) -> QueryHandler<'octo, 'query, Issue>
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]
self,
query: &'query impl AsRef<str> + ?Sized
) -> QueryHandler<'octo, 'query, Code>
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,