pub enum RepoType {
Rev(String),
Tag(String),
Branch(String),
}Expand description
Sets a specific commit of a repository to use
Variants§
Rev(String)
Sets the specific commit to the given hash
Tag(String)
Sets the specific commit to the commit pointed to by the given tag
Branch(String)
Sets the specific commit to the commit pointed to by the given branch name
Trait Implementations§
impl StructuralPartialEq for RepoType
Auto Trait Implementations§
impl Freeze for RepoType
impl RefUnwindSafe for RepoType
impl Send for RepoType
impl Sync for RepoType
impl Unpin for RepoType
impl UnsafeUnpin for RepoType
impl UnwindSafe for RepoType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more