pub struct Git {
pub repo: String,
pub reference: Option<Ref>,
}
Expand description
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.
Implementations§
Source§impl Git
impl Git
Sourcepub fn write_toml(&self, f: &mut Formatter<'_>) -> Result
pub fn write_toml(&self, f: &mut Formatter<'_>) -> Result
Writes the TOML form of self
to f
.
Sourcepub fn display_toml<'a>(&'a self) -> impl Display + Copy + 'a
pub fn display_toml<'a>(&'a self) -> impl Display + Copy + 'a
Returns a type that can be used to as {}
to display TOML.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Git
impl<'de> Deserialize<'de> for Git
Source§fn deserialize<D>(de: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(de: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Git
impl StructuralPartialEq for Git
Auto Trait Implementations§
impl Freeze for Git
impl RefUnwindSafe for Git
impl Send for Git
impl Sync for Git
impl Unpin for Git
impl UnwindSafe for Git
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