pub struct EnvironmentConfig {
pub type: Option<String>,
pub name: Option<String>,
pub copy_files: Vec<String>,
}Expand description
Environment and runtime version configuration.
Specifies runtime managers (pyenv, uv, venv), version names,
and environment files to propagate into newly created worktrees.
§Examples
use git_claw::core::config::EnvironmentConfig;
let env = EnvironmentConfig {
r#type: Some("pyenv".to_string()),
name: Some("3.12.0".to_string()),
copy_files: vec![".python-version".to_string()],
};
assert_eq!(env.r#type.as_deref(), Some("pyenv"));
assert_eq!(env.name.as_deref(), Some("3.12.0"));
assert_eq!(env.copy_files.len(), 1);Fields§
§type: Option<String>§name: Option<String>§copy_files: Vec<String>Trait Implementations§
Source§impl Clone for EnvironmentConfig
impl Clone for EnvironmentConfig
Source§impl Debug for EnvironmentConfig
impl Debug for EnvironmentConfig
Source§impl Default for EnvironmentConfig
impl Default for EnvironmentConfig
Source§impl<'de> Deserialize<'de> for EnvironmentConfig
impl<'de> Deserialize<'de> for EnvironmentConfig
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
impl Eq for EnvironmentConfig
Source§impl PartialEq for EnvironmentConfig
impl PartialEq for EnvironmentConfig
Source§impl Serialize for EnvironmentConfig
impl Serialize for EnvironmentConfig
impl StructuralPartialEq for EnvironmentConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.