pub struct EnvironmentFragment {
pub os: String,
pub cwd: String,
pub git_branch: Option<String>,
}Expand description
Injects runtime environment information: OS, working directory, git branch.
Priority: 50 (middle — after core instructions, before tool descriptions).
Fields§
§os: String§cwd: String§git_branch: Option<String>Implementations§
Source§impl EnvironmentFragment
impl EnvironmentFragment
Sourcepub fn detect() -> EnvironmentFragment
pub fn detect() -> EnvironmentFragment
Auto-detect environment from the current process.
Trait Implementations§
Source§impl Clone for EnvironmentFragment
impl Clone for EnvironmentFragment
Source§fn clone(&self) -> EnvironmentFragment
fn clone(&self) -> EnvironmentFragment
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 PromptFragment for EnvironmentFragment
impl PromptFragment for EnvironmentFragment
Auto Trait Implementations§
impl Freeze for EnvironmentFragment
impl RefUnwindSafe for EnvironmentFragment
impl Send for EnvironmentFragment
impl Sync for EnvironmentFragment
impl Unpin for EnvironmentFragment
impl UnsafeUnpin for EnvironmentFragment
impl UnwindSafe for EnvironmentFragment
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