#[non_exhaustive]pub struct PrClose {
pub delete_branch: bool,
}Expand description
Options for GitHubApi::pr_close (gh pr close).
#[non_exhaustive], so build it through PrClose::new and the chained
delete_branch setter rather than a bare bool
(pr_close(n, true) doesn’t say what true does).
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.delete_branch: boolDelete the head branch after closing the PR (--delete-branch).
Implementations§
Trait Implementations§
impl Eq for PrClose
impl StructuralPartialEq for PrClose
Auto Trait Implementations§
impl Freeze for PrClose
impl RefUnwindSafe for PrClose
impl Send for PrClose
impl Sync for PrClose
impl Unpin for PrClose
impl UnsafeUnpin for PrClose
impl UnwindSafe for PrClose
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