#[non_exhaustive]pub struct PrMerge {
pub strategy: MergeStrategy,
pub auto: bool,
pub delete_branch: bool,
}Expand description
Options for GitHubApi::pr_merge (gh pr merge).
#[non_exhaustive], so build it through the strategy constructors —
merge / squash /
rebase, then auto /
delete_branch — rather than a struct literal.
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.strategy: MergeStrategyThe merge strategy (exactly one of gh’s --merge/--squash/--rebase).
auto: boolEnable auto-merge: merge once requirements are met (--auto).
delete_branch: boolDelete the head branch after the merge (--delete-branch).
Implementations§
Source§impl PrMerge
impl PrMerge
Sourcepub fn delete_branch(self) -> Self
pub fn delete_branch(self) -> Self
Delete the head branch after merging (--delete-branch).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PrMerge
impl RefUnwindSafe for PrMerge
impl Send for PrMerge
impl Sync for PrMerge
impl Unpin for PrMerge
impl UnsafeUnpin for PrMerge
impl UnwindSafe for PrMerge
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