pub enum GitRemoteKind {
Origin,
Upstream,
Mirror,
Other,
}Expand description
Remote kind vocabulary.
Variants§
Origin
The primary origin remote label.
Upstream
An upstream remote label.
Mirror
A mirror remote label.
Other
Another remote role.
Implementations§
Trait Implementations§
Source§impl Clone for GitRemoteKind
impl Clone for GitRemoteKind
Source§fn clone(&self) -> GitRemoteKind
fn clone(&self) -> GitRemoteKind
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 GitRemoteKind
impl Debug for GitRemoteKind
Source§impl Display for GitRemoteKind
impl Display for GitRemoteKind
Source§impl FromStr for GitRemoteKind
impl FromStr for GitRemoteKind
Source§type Err = GitRemoteNameError
type Err = GitRemoteNameError
The associated error which can be returned from parsing.
Source§fn from_str(
value: &str,
) -> Result<GitRemoteKind, <GitRemoteKind as FromStr>::Err>
fn from_str( value: &str, ) -> Result<GitRemoteKind, <GitRemoteKind as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for GitRemoteKind
impl Hash for GitRemoteKind
Source§impl Ord for GitRemoteKind
impl Ord for GitRemoteKind
Source§fn cmp(&self, other: &GitRemoteKind) -> Ordering
fn cmp(&self, other: &GitRemoteKind) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for GitRemoteKind
impl PartialEq for GitRemoteKind
Source§fn eq(&self, other: &GitRemoteKind) -> bool
fn eq(&self, other: &GitRemoteKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for GitRemoteKind
impl PartialOrd for GitRemoteKind
impl Copy for GitRemoteKind
impl Eq for GitRemoteKind
impl StructuralPartialEq for GitRemoteKind
Auto Trait Implementations§
impl Freeze for GitRemoteKind
impl RefUnwindSafe for GitRemoteKind
impl Send for GitRemoteKind
impl Sync for GitRemoteKind
impl Unpin for GitRemoteKind
impl UnsafeUnpin for GitRemoteKind
impl UnwindSafe for GitRemoteKind
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