[][src]Struct octocrab::issues::ListIssuesBuilder

pub struct ListIssuesBuilder<'octo, 'b, 'c, 'd> { /* fields omitted */ }

Implementations

impl<'octo, 'b, 'c, 'd> ListIssuesBuilder<'octo, 'b, 'c, 'd>[src]

pub fn milestone(self, milestone: impl Into<Filter<u64>>) -> Self[src]

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.

pub fn assignee(self, assignee: impl Into<Filter<&'c str>>) -> Self[src]

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.

pub fn creator(self, creator: impl Into<String>) -> Self[src]

Filter by the creator of the issue.

pub fn mentioned(self, mentioned: impl Into<String>) -> Self[src]

Filter by the creator of the issue.

pub fn state(self, state: State) -> Self[src]

Filter pull requests by state.

pub fn labels(self, labels: &'d impl AsRef<[String]> + ?Sized) -> Self[src]

Filter issues by label.

pub fn sort(self, sort: impl Into<Sort>) -> Self[src]

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).

pub fn direction(self, direction: impl Into<Direction>) -> Self[src]

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.

pub fn per_page(self, per_page: impl Into<u8>) -> Self[src]

Results per page (max 100).

pub fn page(self, page: impl Into<u32>) -> Self[src]

Page number of the results to fetch.

pub async fn send(self) -> Result<Page<Issue>>[src]

Sends the actual request.

Trait Implementations

impl<'octo, 'b, 'c, 'd> Serialize for ListIssuesBuilder<'octo, 'b, 'c, 'd>[src]

Auto Trait Implementations

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> where
    'octo: 'b, 

impl<'octo, 'b, 'c, 'd> !UnwindSafe for ListIssuesBuilder<'octo, 'b, 'c, 'd>

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, 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.