#[non_exhaustive]pub struct PrList {
pub state: PrListState,
pub limit: usize,
}Expand description
Filters for GitHubApi::pr_list_with (gh pr list).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.state: PrListStateState filter (--state).
limit: usizeMaximum number of pull requests (--limit).
Implementations§
Source§impl PrList
impl PrList
Sourcepub fn new() -> Self
pub fn new() -> Self
Open pull requests, up to 100 — the compatibility default used by
GitHubApi::pr_list.
Sourcepub fn state(self, state: PrListState) -> Self
pub fn state(self, state: PrListState) -> Self
Select a pull-request state.
Trait Implementations§
impl Eq for PrList
impl StructuralPartialEq for PrList
Auto Trait Implementations§
impl Freeze for PrList
impl RefUnwindSafe for PrList
impl Send for PrList
impl Sync for PrList
impl Unpin for PrList
impl UnsafeUnpin for PrList
impl UnwindSafe for PrList
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