pub struct EnvAddition {
pub key: String,
pub value: String,
pub kind: EnvKind,
pub prompt: Option<String>,
}Expand description
One env var the registry expects in .env that the user’s .env
doesn’t have. By design env tracking is append-only — we never flag
a present-but-different value as drift, and we never propose
removing a key. Users may have manually edited values or added their
own keys; clobbering those would be the larger harm.
kind and prompt come straight from the registry’s EnvVar
definition, so the CLI can route Prompted / Required additions
through the same interactive prompt that ryra add uses, while
silently appending Default ones.
Fields§
§key: String§value: String§kind: EnvKind§prompt: Option<String>Trait Implementations§
Source§impl Clone for EnvAddition
impl Clone for EnvAddition
Source§fn clone(&self) -> EnvAddition
fn clone(&self) -> EnvAddition
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 moreAuto Trait Implementations§
impl Freeze for EnvAddition
impl RefUnwindSafe for EnvAddition
impl Send for EnvAddition
impl Sync for EnvAddition
impl Unpin for EnvAddition
impl UnsafeUnpin for EnvAddition
impl UnwindSafe for EnvAddition
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