pub enum EnvRefSyntax {
DollarBrace {
default: bool,
bare: bool,
},
Dollar,
DollarBraceEnv,
BraceEnv,
CodexForward,
}Expand description
How a client spells an environment variable reference it expands itself.
Variants§
DollarBrace
${NAME}; default when ${NAME:-default} is understood too;
bare when a bare $NAME is expanded as well, with no escape
(Gemini, Qwen Code; [verify] GEM-6), so literal text holding $
before a name character cannot be written for the client.
Dollar
${NAME} and bare $NAME, no default; $$ is a literal $ and
$! a literal !, so literal text is written with every $
doubled and a leading ! as $! (Pi; gate V2 PI-7).
DollarBraceEnv
${env:NAME} (Cursor, Windsurf, Devin).
BraceEnv
{env:NAME} (OpenCode, MiMo Code). The client also substitutes
{file:path}, so literal text holding {env: or {file: cannot
be written for it; a literal ${ is left alone.
CodexForward
No expansion; a parent variable is forwarded by name (Codex
env_vars, bearer_token_env_var, env_http_headers).
Trait Implementations§
Source§impl Clone for EnvRefSyntax
impl Clone for EnvRefSyntax
impl Copy for EnvRefSyntax
Source§impl Debug for EnvRefSyntax
impl Debug for EnvRefSyntax
impl Eq for EnvRefSyntax
Source§impl PartialEq for EnvRefSyntax
impl PartialEq for EnvRefSyntax
impl StructuralPartialEq for EnvRefSyntax
Auto Trait Implementations§
impl Forget for EnvRefSyntax
impl Freeze for EnvRefSyntax
impl Move for EnvRefSyntax
impl RefUnwindSafe for EnvRefSyntax
impl Send for EnvRefSyntax
impl Sync for EnvRefSyntax
impl Unpin for EnvRefSyntax
impl UnsafeUnpin for EnvRefSyntax
impl UnwindSafe for EnvRefSyntax
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
key and return true if they are equal.