pub struct Query { /* private fields */ }Implementations§
Source§impl Query
impl Query
pub fn new() -> Self
pub fn from_repo(repo: Repo) -> Self
Adds an author to the query.
Result is author:username.
Sourcepub fn repo(self, user: &str, repo: &str) -> Self
pub fn repo(self, user: &str, repo: &str) -> Self
Adds a repo to the query.
Results in repo:user/repo.
Sourcepub fn repos(self, n: &str) -> Self
pub fn repos(self, n: &str) -> Self
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.
Sourcepub fn is(self, statement: &str) -> Self
pub fn is(self, statement: &str) -> Self
Adds an is statement to the query.
Results in is:statement.
Sourcepub fn in(self, keyword: &str, field: &str) -> Self
pub fn in(self, keyword: &str, field: &str) -> Self
Adds an in statement to the query
Results in keyword in:field.
Sourcepub fn assignee(self, username: &str) -> Self
pub fn assignee(self, username: &str) -> Self
Adds an assignee statement to the query.
Results in assignee:username.
Sourcepub fn user(self, statement: &str) -> Self
pub fn user(self, statement: &str) -> Self
Adds an user statement to the query.
Results in user:statement.
Sourcepub fn org(self, statement: &str) -> Self
pub fn org(self, statement: &str) -> Self
Adds an org statement to the query.
Results in org:statement.
Sourcepub fn fullname(self, first_name: &str, last_name: &str) -> Self
pub fn fullname(self, first_name: &str, last_name: &str) -> Self
Adds a fullname statement to the query.
Results in fullname:first_name last_name.
Sourcepub fn label(self, statement: &str) -> Self
pub fn label(self, statement: &str) -> Self
Adds a label statement to the query.
Results in label:statement.
Sourcepub fn type(self, statement: &str) -> Self
pub fn type(self, statement: &str) -> Self
Adds a type statement to the query.
Results in type:statement.
Use r#type to escape type keyword.