pub struct IssuesListMilestonesParams<'req> { /* private fields */ }Expand description
Query parameters for the List milestones endpoint.
Implementations§
Source§impl<'req> IssuesListMilestonesParams<'req>
impl<'req> IssuesListMilestonesParams<'req>
pub fn new() -> Self
Sourcepub fn state(self, state: &'req str) -> Self
pub fn state(self, state: &'req str) -> Self
The state of the milestone. Either open, closed, or all.
Sourcepub fn sort(self, sort: &'req str) -> Self
pub fn sort(self, sort: &'req str) -> Self
What to sort results by. Either due_on or completeness.
Sourcepub fn direction(self, direction: &'req str) -> Self
pub fn direction(self, direction: &'req str) -> Self
The direction of the sort. Either asc or desc.
Sourcepub fn per_page(self, per_page: u16) -> Self
pub fn per_page(self, per_page: u16) -> Self
The number of results per page (max 100). For more information, see "Using pagination in the REST API."
Sourcepub fn page(self, page: u16) -> Self
pub fn page(self, page: u16) -> Self
The page number of the results to fetch. For more information, see "Using pagination in the REST API."
Trait Implementations§
Source§impl<'req> Default for IssuesListMilestonesParams<'req>
impl<'req> Default for IssuesListMilestonesParams<'req>
Source§fn default() -> IssuesListMilestonesParams<'req>
fn default() -> IssuesListMilestonesParams<'req>
Returns the “default value” for a type. Read more
Source§impl<'enc> From<&'enc PerPage> for IssuesListMilestonesParams<'enc>
impl<'enc> From<&'enc PerPage> for IssuesListMilestonesParams<'enc>
Auto Trait Implementations§
impl<'req> Freeze for IssuesListMilestonesParams<'req>
impl<'req> RefUnwindSafe for IssuesListMilestonesParams<'req>
impl<'req> Send for IssuesListMilestonesParams<'req>
impl<'req> Sync for IssuesListMilestonesParams<'req>
impl<'req> Unpin for IssuesListMilestonesParams<'req>
impl<'req> UnwindSafe for IssuesListMilestonesParams<'req>
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