pub enum Vcs {
Git {
repo_url: String,
branch: Option<String>,
subpath: Option<String>,
},
Bzr {
repo_url: String,
subpath: Option<String>,
},
Hg {
repo_url: String,
},
Svn {
url: String,
},
Cvs {
root: String,
module: Option<String>,
},
}
Expand description
Version Control System information
Variants§
Git
Git repository
Fields
Bzr
Bazaar branch
Hg
Mercurial repository
Svn
Subversion repository
Cvs
CVS repository
Implementations§
Source§impl Vcs
impl Vcs
Sourcepub fn to_field(&self) -> (&str, String)
pub fn to_field(&self) -> (&str, String)
Convert the VCS information to a field
Returns a tuple with the name of the VCS and the value of the field
Sourcepub fn to_branch_url(&self) -> Option<String>
pub fn to_branch_url(&self) -> Option<String>
Convert the VCS information to a URL that is usable by Breezy
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Vcs
impl RefUnwindSafe for Vcs
impl Send for Vcs
impl Sync for Vcs
impl Unpin for Vcs
impl UnwindSafe for Vcs
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