#[non_exhaustive]pub enum MergeStrategy {
Merge,
Squash,
Rebase,
}Expand description
How GitLabApi::mr_merge merges the MR. GitLab’s default is a merge commit;
Squash/Rebase add the corresponding flag.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Merge
A merge commit (glab’s default — no extra flag).
Squash
Squash the commits into one (--squash).
Rebase
Rebase the source onto the target (--rebase).
Trait Implementations§
Source§impl Clone for MergeStrategy
impl Clone for MergeStrategy
Source§fn clone(&self) -> MergeStrategy
fn clone(&self) -> MergeStrategy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MergeStrategy
Source§impl Debug for MergeStrategy
impl Debug for MergeStrategy
impl Eq for MergeStrategy
Source§impl PartialEq for MergeStrategy
impl PartialEq for MergeStrategy
Source§fn eq(&self, other: &MergeStrategy) -> bool
fn eq(&self, other: &MergeStrategy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MergeStrategy
Auto Trait Implementations§
impl Freeze for MergeStrategy
impl RefUnwindSafe for MergeStrategy
impl Send for MergeStrategy
impl Sync for MergeStrategy
impl Unpin for MergeStrategy
impl UnsafeUnpin for MergeStrategy
impl UnwindSafe for MergeStrategy
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