#[non_exhaustive]pub struct BranchDelete {
pub name: String,
pub force: bool,
}Expand description
Options for Repo::delete_branch.
#[non_exhaustive], so build it through BranchDelete::new and the chained
force setter 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.name: StringThe local branch (git) / bookmark (jj) name to delete.
force: boolDelete even if not fully merged — git branch -D vs -d. git only: jj has
no force flag for bookmark delete and ignores it.
Implementations§
Trait Implementations§
Source§impl Clone for BranchDelete
impl Clone for BranchDelete
Source§fn clone(&self) -> BranchDelete
fn clone(&self) -> BranchDelete
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 BranchDelete
impl Debug for BranchDelete
impl Eq for BranchDelete
Source§impl PartialEq for BranchDelete
impl PartialEq for BranchDelete
Source§fn eq(&self, other: &BranchDelete) -> bool
fn eq(&self, other: &BranchDelete) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BranchDelete
Auto Trait Implementations§
impl Freeze for BranchDelete
impl RefUnwindSafe for BranchDelete
impl Send for BranchDelete
impl Sync for BranchDelete
impl Unpin for BranchDelete
impl UnsafeUnpin for BranchDelete
impl UnwindSafe for BranchDelete
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