pub struct EnvVars {
pub vars: BTreeMap<String, String>,
}Fields§
§vars: BTreeMap<String, String>Implementations§
Source§impl EnvVars
impl EnvVars
pub fn load(project: &str) -> Result<Self, Error>
pub fn save(&self, project: &str) -> Result<(), Error>
pub fn load_worktree(project: &str, worktree: &str) -> Result<Self, Error>
pub fn save_worktree(&self, project: &str, worktree: &str) -> Result<(), Error>
pub fn set(&mut self, key: String, value: String)
pub fn remove(&mut self, key: &str) -> bool
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EnvVars
impl<'de> Deserialize<'de> for EnvVars
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 EnvVars
impl RefUnwindSafe for EnvVars
impl Send for EnvVars
impl Sync for EnvVars
impl Unpin for EnvVars
impl UnwindSafe for EnvVars
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