#[non_exhaustive]pub struct GitMeta {
pub commit_hash: Option<String>,
pub branch: Option<String>,
pub repository_url: Option<String>,
}Expand description
Git metadata recorded with a session.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.commit_hash: Option<String>Commit the working tree was on.
branch: Option<String>Branch name.
repository_url: Option<String>Remote URL.
Trait Implementations§
impl Eq for GitMeta
impl StructuralPartialEq for GitMeta
Auto Trait Implementations§
impl Freeze for GitMeta
impl RefUnwindSafe for GitMeta
impl Send for GitMeta
impl Sync for GitMeta
impl Unpin for GitMeta
impl UnsafeUnpin for GitMeta
impl UnwindSafe for GitMeta
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