pub struct RenameBranchCommand;
Expand description
Command implementation for git rename-branch
Trait Implementations§
Source§impl Command for RenameBranchCommand
impl Command for RenameBranchCommand
Source§fn execute(&self, new_name: String) -> Result<(), GitXError>
fn execute(&self, new_name: String) -> Result<(), GitXError>
Execute the command with the given input
Source§fn description(&self) -> &'static str
fn description(&self) -> &'static str
Get a description of what this command does
Source§fn is_destructive(&self) -> bool
fn is_destructive(&self) -> bool
Whether this command performs destructive operations
Source§fn requires_git_repo(&self) -> bool
fn requires_git_repo(&self) -> bool
Whether this command requires a git repository to function
Auto Trait Implementations§
impl Freeze for RenameBranchCommand
impl RefUnwindSafe for RenameBranchCommand
impl Send for RenameBranchCommand
impl Sync for RenameBranchCommand
impl Unpin for RenameBranchCommand
impl UnwindSafe for RenameBranchCommand
Blanket Implementations§
Source§impl<T> ActionCommand for T
impl<T> ActionCommand for T
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