pub struct Environment {
pub managed: Vec<(String, Value)>,
pub shell: Vec<(String, String)>,
}Expand description
What, besides ~/.claude/settings.json, decides where Claude Code’s
telemetry goes: the managed settings Claude Code applies above the user’s
(each with a label naming its source), and the OTEL_* variables of the
environment init/status runs in, which Claude Code also sees when
started from it.
Fields§
§managed: Vec<(String, Value)>§shell: Vec<(String, String)>Implementations§
Source§impl Environment
impl Environment
Sourcepub fn current(claude_dir: &Path) -> Self
pub fn current(claude_dir: &Path) -> Self
This machine’s: the file-based managed settings (managed-settings.json
and managed-settings.d/*.json in the system directory), the cached
server-managed settings (<claude_dir>/remote-settings.json), and the
process environment. MDM profiles and registry policies are not read.
Trait Implementations§
Source§impl Debug for Environment
impl Debug for Environment
Auto Trait Implementations§
impl Freeze for Environment
impl RefUnwindSafe for Environment
impl Send for Environment
impl Sync for Environment
impl Unpin for Environment
impl UnsafeUnpin for Environment
impl UnwindSafe for Environment
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