pub struct SessionStart {
pub copilot_version: Option<String>,
pub producer: Option<String>,
pub cwd: Option<String>,
pub git_root: Option<String>,
pub repository: Option<String>,
pub branch: Option<String>,
pub revision: Option<String>,
pub model: Option<String>,
}Expand description
session.start — the session-meta line.
Observed at copilotVersion 1.0.67: cwd and git context are nested under a
context object ({cwd, gitRoot, repository, branch, headCommit, ...});
the CLI version is copilotVersion (the top-level version is an integer
schema version, not the CLI version). Extraction falls back to top-level
keys for tolerance.
Fields§
§copilot_version: Option<String>CLI version (copilotVersion).
producer: Option<String>Self-reported producer (e.g. "copilot-agent").
cwd: Option<String>§git_root: Option<String>§repository: Option<String>§branch: Option<String>§revision: Option<String>HEAD commit at session start (context.headCommit).
model: Option<String>Trait Implementations§
Source§impl Clone for SessionStart
impl Clone for SessionStart
Source§fn clone(&self) -> SessionStart
fn clone(&self) -> SessionStart
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 SessionStart
impl Debug for SessionStart
Source§impl Default for SessionStart
impl Default for SessionStart
Source§fn default() -> SessionStart
fn default() -> SessionStart
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SessionStart
impl RefUnwindSafe for SessionStart
impl Send for SessionStart
impl Sync for SessionStart
impl Unpin for SessionStart
impl UnsafeUnpin for SessionStart
impl UnwindSafe for SessionStart
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