#[non_exhaustive]pub enum MergeMethod {
FastForward,
MergeCommit,
Rebase,
RebaseMerge,
Squash,
}Expand description
A way a pull request can land on the default branch.
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.
FastForward
Fast-forward only: the PR’s own commits land unchanged, DID signatures and all. The one method that needs no platform key.
MergeCommit
A merge commit, made (and signed, if at all) by the forge.
Rebase
The PR’s commits re-created on the base by the forge.
RebaseMerge
Rebase, then a merge commit (Forgejo’s rebase-merge).
Squash
One new commit, made by the forge.
Trait Implementations§
Source§impl Clone for MergeMethod
impl Clone for MergeMethod
impl Copy for MergeMethod
Source§impl Debug for MergeMethod
impl Debug for MergeMethod
Source§impl<'de> Deserialize<'de> for MergeMethod
impl<'de> Deserialize<'de> for MergeMethod
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MergeMethod
Source§impl Hash for MergeMethod
impl Hash for MergeMethod
Source§impl Ord for MergeMethod
impl Ord for MergeMethod
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for MergeMethod
impl PartialEq for MergeMethod
Source§impl PartialOrd for MergeMethod
impl PartialOrd for MergeMethod
Source§impl Serialize for MergeMethod
impl Serialize for MergeMethod
impl StructuralPartialEq for MergeMethod
Auto Trait Implementations§
impl Freeze for MergeMethod
impl RefUnwindSafe for MergeMethod
impl Send for MergeMethod
impl Sync for MergeMethod
impl Unpin for MergeMethod
impl UnsafeUnpin for MergeMethod
impl UnwindSafe for MergeMethod
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