pub struct WorkingDirectoryContext {
pub base_commit: Option<String>,
pub branch: Option<String>,
pub cwd: String,
pub git_root: Option<String>,
pub head_commit: Option<String>,
pub host_type: Option<WorkingDirectoryContextHostType>,
pub repository: Option<String>,
pub repository_host: Option<String>,
}Expand description
Working directory and git context at session start
Fields§
§base_commit: Option<String>Base commit of current git branch at session start time
branch: Option<String>Current git branch name
cwd: StringCurrent working directory path
git_root: Option<String>Root directory of the git repository, resolved via git rev-parse
head_commit: Option<String>Head commit of current git branch at session start time
host_type: Option<WorkingDirectoryContextHostType>Hosting platform type of the repository (github or ado)
repository: Option<String>Repository identifier derived from the git remote URL (“owner/name” for GitHub, “org/project/repo” for Azure DevOps)
repository_host: Option<String>Raw host string from the git remote URL (e.g. “github.com”, “mycompany.ghe.com”, “dev.azure.com”)
Trait Implementations§
Source§impl Clone for WorkingDirectoryContext
impl Clone for WorkingDirectoryContext
Source§fn clone(&self) -> WorkingDirectoryContext
fn clone(&self) -> WorkingDirectoryContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WorkingDirectoryContext
impl Debug for WorkingDirectoryContext
Source§impl<'de> Deserialize<'de> for WorkingDirectoryContext
impl<'de> Deserialize<'de> for WorkingDirectoryContext
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 WorkingDirectoryContext
impl RefUnwindSafe for WorkingDirectoryContext
impl Send for WorkingDirectoryContext
impl Sync for WorkingDirectoryContext
impl Unpin for WorkingDirectoryContext
impl UnsafeUnpin for WorkingDirectoryContext
impl UnwindSafe for WorkingDirectoryContext
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