pub struct GitInfo {
pub tag: Option<String>,
pub commits_past_tag: Option<usize>,
pub commit_hash_short: String,
pub dirty: bool,
}
Expand description
Represents Git “describe” information in the form:
tag-<commits>-<hash>[-dirty]
- or, if there is no tag, just
<hash>[-dirty]
Fields§
§tag: Option<String>
§commits_past_tag: Option<usize>
§commit_hash_short: String
§dirty: bool
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GitInfo
impl<'de> Deserialize<'de> for GitInfo
Source§fn deserialize<D>(deserializer: D) -> Result<GitInfo, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<GitInfo, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for GitInfo
impl StructuralPartialEq for GitInfo
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