#[non_exhaustive]pub struct MergeCheck {
pub branch: String,
pub base: String,
}Expand description
A “is branch fully merged into base?” check for GitApi::is_merged.
Built as MergeCheck::branch("feature").into_base("main") — the two same-typed
refs are named across two builder steps, so they can’t be silently transposed
(a swap would invert the answer). #[non_exhaustive].
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.branch: StringThe branch/ref being tested for having been merged.
base: StringThe base branch/ref it should be fully merged into.
Implementations§
Source§impl MergeCheck
impl MergeCheck
Trait Implementations§
Source§impl Clone for MergeCheck
impl Clone for MergeCheck
Source§fn clone(&self) -> MergeCheck
fn clone(&self) -> MergeCheck
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 moreSource§impl Debug for MergeCheck
impl Debug for MergeCheck
impl Eq for MergeCheck
Source§impl PartialEq for MergeCheck
impl PartialEq for MergeCheck
Source§fn eq(&self, other: &MergeCheck) -> bool
fn eq(&self, other: &MergeCheck) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MergeCheck
Auto Trait Implementations§
impl Freeze for MergeCheck
impl RefUnwindSafe for MergeCheck
impl Send for MergeCheck
impl Sync for MergeCheck
impl Unpin for MergeCheck
impl UnsafeUnpin for MergeCheck
impl UnwindSafe for MergeCheck
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