pub struct SessionContextChangedData {
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 SessionContextChangedData
impl Clone for SessionContextChangedData
Source§fn clone(&self) -> SessionContextChangedData
fn clone(&self) -> SessionContextChangedData
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 SessionContextChangedData
impl Debug for SessionContextChangedData
Source§impl<'de> Deserialize<'de> for SessionContextChangedData
impl<'de> Deserialize<'de> for SessionContextChangedData
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 SessionContextChangedData
impl RefUnwindSafe for SessionContextChangedData
impl Send for SessionContextChangedData
impl Sync for SessionContextChangedData
impl Unpin for SessionContextChangedData
impl UnsafeUnpin for SessionContextChangedData
impl UnwindSafe for SessionContextChangedData
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