pub struct ListIssuesBuilder<'octo, 'b, 'c, 'd> { /* private fields */ }
Implementations§
Source§impl<'octo, 'b, 'c, 'd> ListIssuesBuilder<'octo, 'b, 'c, 'd>
impl<'octo, 'b, 'c, 'd> ListIssuesBuilder<'octo, 'b, 'c, 'd>
Sourcepub fn milestone(self, milestone: impl Into<Filter<u64>>) -> Self
pub fn milestone(self, milestone: impl Into<Filter<u64>>) -> Self
If an integer is passed, it should refer to a milestone by its number
field. If the string "*"
is passed, issues with any milestone are
accepted. If the string none is passed, issues without milestones
are returned.
Sourcepub fn assignee(self, assignee: impl Into<Filter<&'c str>>) -> Self
pub fn assignee(self, assignee: impl Into<Filter<&'c str>>) -> Self
Filter by assignee, can be the name of a user. Pass in the string
"none"
for issues with no assigned user, and "*"
for issues assigned
to any user.
Sourcepub fn mentioned(self, mentioned: impl Into<String>) -> Self
pub fn mentioned(self, mentioned: impl Into<String>) -> Self
Filter by the creator of the issue.
Sourcepub fn labels(self, labels: &'d (impl AsRef<[String]> + ?Sized)) -> Self
pub fn labels(self, labels: &'d (impl AsRef<[String]> + ?Sized)) -> Self
Filter issues by label.
Sourcepub fn sort(self, sort: impl Into<Sort>) -> Self
pub fn sort(self, sort: impl Into<Sort>) -> Self
What to sort results by. Can be either created
, updated
,
popularity
(comment count) or long-running
(age, filtering by pulls
updated in the last month).
Sourcepub fn direction(self, direction: impl Into<Direction>) -> Self
pub fn direction(self, direction: impl Into<Direction>) -> Self
The direction of the sort. Can be either ascending or descending.
Default: descending when sort is created
or sort is not specified,
otherwise ascending sort.
Trait Implementations§
Auto Trait Implementations§
impl<'octo, 'b, 'c, 'd> Freeze for ListIssuesBuilder<'octo, 'b, 'c, 'd>
impl<'octo, 'b, 'c, 'd> !RefUnwindSafe for ListIssuesBuilder<'octo, 'b, 'c, 'd>
impl<'octo, 'b, 'c, 'd> Send for ListIssuesBuilder<'octo, 'b, 'c, 'd>
impl<'octo, 'b, 'c, 'd> Sync for ListIssuesBuilder<'octo, 'b, 'c, 'd>
impl<'octo, 'b, 'c, 'd> Unpin for ListIssuesBuilder<'octo, 'b, 'c, 'd>
impl<'octo, 'b, 'c, 'd> !UnwindSafe for ListIssuesBuilder<'octo, 'b, 'c, 'd>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more