[][src]Struct github_stats::Query

pub struct Query { /* fields omitted */ }

Implementations

impl Query[src]

pub fn new() -> Self[src]

pub fn from_repo(repo: Repo) -> Self[src]

pub fn author(self, username: &str) -> Self[src]

Adds an author to the query.

Result is author:username.

pub fn repo(self, user: &str, repo: &str) -> Self[src]

Adds a repo to the query.

Results in repo:user/repo.

pub fn repos(self, n: &str) -> Self[src]

Search for User by count of repositories.

Results in repos:n. n does not have to be a standard int. >5 and 10..15 are also valid values.

pub fn is(self, statement: &str) -> Self[src]

Adds an is statement to the query.

Results in is:statement.

pub fn in(self, keyword: &str, field: &str) -> Self[src]

Adds an in statement to the query

Results in keyword in:field.

pub fn assignee(self, username: &str) -> Self[src]

Adds an assignee statement to the query.

Results in assignee:username.

pub fn user(self, statement: &str) -> Self[src]

Adds an user statement to the query.

Results in user:statement.

pub fn org(self, statement: &str) -> Self[src]

Adds an org statement to the query.

Results in org:statement.

pub fn fullname(self, first_name: &str, last_name: &str) -> Self[src]

Adds a fullname statement to the query.

Results in fullname:first_name last_name.

pub fn label(self, statement: &str) -> Self[src]

Adds a label statement to the query.

Results in label:statement.

pub fn type(self, statement: &str) -> Self[src]

Adds a type statement to the query.

Results in type:statement.

Use r#type to escape type keyword.

pub fn no(self, statement: &str) -> Self[src]

Adds a no statement to the query.

Results in no:statement.

pub fn language(self, statement: &str) -> Self[src]

Adds a language statement to the query.

Results in language:statement.

Trait Implementations

impl Default for Query[src]

impl Display for Query[src]

Auto Trait Implementations

impl RefUnwindSafe for Query

impl Send for Query

impl Sync for Query

impl Unpin for Query

impl UnwindSafe for Query

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> ToString for T where
    T: Display + ?Sized
[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.