[−][src]Struct github_stats::Query
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
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]
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,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
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.
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>,