pub struct SystemContext {
pub git_branch: Option<String>,
pub git_status: Option<String>,
pub working_directory: Option<String>,
pub project_root: Option<String>,
pub project_type: Option<ProjectType>,
pub available_tools: Vec<String>,
pub platform: String,
pub lsp_servers: Vec<LspServerInfo>,
}Expand description
System context (git, workspace, tools)
Fields§
§git_branch: Option<String>Git branch name
git_status: Option<String>Git status (clean/dirty)
working_directory: Option<String>Current working directory
project_root: Option<String>Project root directory
project_type: Option<ProjectType>Detected project type
available_tools: Vec<String>Available tools
platform: StringPlatform info
lsp_servers: Vec<LspServerInfo>LSP servers status (dynamic injection)
Trait Implementations§
Source§impl Clone for SystemContext
impl Clone for SystemContext
Source§fn clone(&self) -> SystemContext
fn clone(&self) -> SystemContext
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 SystemContext
impl Debug for SystemContext
Source§impl Default for SystemContext
impl Default for SystemContext
Source§impl<'de> Deserialize<'de> for SystemContext
impl<'de> Deserialize<'de> for SystemContext
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 SystemContext
impl RefUnwindSafe for SystemContext
impl Send for SystemContext
impl Sync for SystemContext
impl Unpin for SystemContext
impl UnsafeUnpin for SystemContext
impl UnwindSafe for SystemContext
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