pub enum VcsClient {
Noop {},
Git {
source: PathBuf,
username: String,
email: String,
},
}Variants§
Implementations§
Source§impl VcsClient
impl VcsClient
pub fn new_noop() -> VcsClient
pub fn new_git( path: &Path, git_username: Option<impl Into<String>>, git_email: Option<impl Into<String>>, ) -> Result<VcsClient>
pub fn checkout_branch(&self) -> Result<()>
pub fn commit_and_push( &self, version: impl Into<String>, dry_run: bool, ) -> Result<()>
Trait Implementations§
impl StructuralPartialEq for VcsClient
Auto Trait Implementations§
impl Freeze for VcsClient
impl RefUnwindSafe for VcsClient
impl Send for VcsClient
impl Sync for VcsClient
impl Unpin for VcsClient
impl UnwindSafe for VcsClient
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