pub struct EnvironmentConfig {
pub env_vars: BTreeMap<String, String>,
}Expand description
Environment variable manager for API configuration
Handles setting environment variables for the Claude CLI process
Fields§
§env_vars: BTreeMap<String, String>Environment variables to be set
Implementations§
Source§impl EnvironmentConfig
impl EnvironmentConfig
Sourcepub fn from_config(config: &Configuration) -> Self
pub fn from_config(config: &Configuration) -> Self
Sourcepub fn as_env_tuples(&self) -> Vec<(String, String)>
pub fn as_env_tuples(&self) -> Vec<(String, String)>
Get environment variables as a Vec of (key, value) tuples for use with Command::envs()
Trait Implementations§
Source§impl Clone for EnvironmentConfig
impl Clone for EnvironmentConfig
Source§fn clone(&self) -> EnvironmentConfig
fn clone(&self) -> EnvironmentConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for EnvironmentConfig
impl Default for EnvironmentConfig
Source§fn default() -> EnvironmentConfig
fn default() -> EnvironmentConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EnvironmentConfig
impl RefUnwindSafe for EnvironmentConfig
impl Send for EnvironmentConfig
impl Sync for EnvironmentConfig
impl Unpin for EnvironmentConfig
impl UnsafeUnpin for EnvironmentConfig
impl UnwindSafe for EnvironmentConfig
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