pub struct GitInfo {
pub commit: String,
pub branch: Option<String>,
pub tag: Option<String>,
pub dirty: Option<bool>,
}Expand description
Git repository information.
All fields except commit are optional. This section is only
present if the project uses git.
Fields§
§commit: StringFull commit hash (required if git section present).
branch: Option<String>Branch name.
tag: Option<String>Git tag (if on a tagged commit).
dirty: Option<bool>Whether the working tree had uncommitted changes.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GitInfo
impl<'de> Deserialize<'de> for GitInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GitInfo
impl RefUnwindSafe for GitInfo
impl Send for GitInfo
impl Sync for GitInfo
impl Unpin for GitInfo
impl UnwindSafe for GitInfo
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