[][src]Struct oceanpkg::drop::source::git::Git

pub struct Git {
    pub repo: String,
    pub reference: Option<Ref>,
}

Information about a git repository where a drop or dependency can be found.

Fields

repo: String

Where the git repository is located.

reference: Option<Ref>

The specific branch to use.

Methods

impl Git[src]

pub fn new<A, B>(repo: A, reference: B) -> Self where
    A: Into<String>,
    B: Into<Option<Ref>>, 
[src]

Creates a new instance with the given fields.

pub fn write_toml(&self, f: &mut Formatter) -> Result[src]

Writes the TOML form of self to f.

pub fn display_toml<'a>(&'a self) -> impl Display + Copy + 'a[src]

Returns a type that can be used to as {} to display TOML.

Trait Implementations

impl Clone for Git[src]

impl Debug for Git[src]

impl<'de> Deserialize<'de> for Git[src]

impl Eq for Git[src]

impl From<String> for Git[src]

impl Hash for Git[src]

impl PartialEq<Git> for Git[src]

impl Serialize for Git[src]

impl StructuralEq for Git[src]

impl StructuralPartialEq for Git[src]

Auto Trait Implementations

impl RefUnwindSafe for Git

impl Send for Git

impl Sync for Git

impl Unpin for Git

impl UnwindSafe for Git

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<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[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 = !

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.