[−][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
[src]
impl Send for Query
[src]
impl Sync for Query
[src]
impl Unpin for Query
[src]
impl UnwindSafe for Query
[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, 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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,