pub struct GitContext {
pub remote: Option<String>,
pub branch: Option<String>,
pub commit: Option<String>,
pub repo_name: Option<String>,
}Expand description
Git metadata collected from the working directory at session time.
Fields§
§remote: Option<String>§branch: Option<String>§commit: Option<String>§repo_name: Option<String>Trait Implementations§
Source§impl Clone for GitContext
impl Clone for GitContext
Source§fn clone(&self) -> GitContext
fn clone(&self) -> GitContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GitContext
impl Debug for GitContext
Source§impl Default for GitContext
impl Default for GitContext
Source§fn default() -> GitContext
fn default() -> GitContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GitContext
impl RefUnwindSafe for GitContext
impl Send for GitContext
impl Sync for GitContext
impl Unpin for GitContext
impl UnwindSafe for GitContext
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