[][src]Enum cargo_lock::package::source::GitReference

pub enum GitReference {
    Tag(String),
    Branch(String),
    Rev(String),
}

Information to find a specific commit in a Git repository.

Variants

Tag(String)

From a tag.

Branch(String)

From the HEAD of a branch.

Rev(String)

From a specific revision.

Implementations

impl GitReference[src]

pub fn pretty_ref(&self) -> Option<PrettyRef<'_>>[src]

Returns a Displayable view of this git reference, or None if using the head of the "master" branch

Trait Implementations

impl Clone for GitReference[src]

impl Debug for GitReference[src]

impl Eq for GitReference[src]

impl Hash for GitReference[src]

impl Ord for GitReference[src]

impl PartialEq<GitReference> for GitReference[src]

impl PartialOrd<GitReference> for GitReference[src]

impl StructuralEq for GitReference[src]

impl StructuralPartialEq for GitReference[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.