[−][src]Struct oceanpkg::drop::source::git::Git
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]
A: Into<String>,
B: Into<Option<Ref>>,
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]
fn deserialize<D>(de: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl Eq for Git
[src]
impl From<String> for Git
[src]
impl Hash for Git
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Git> for Git
[src]
impl Serialize for Git
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,