pub struct SubprocessEnv {
pub mode: SubprocessEnvMode,
pub allow: Vec<String>,
}Expand description
sandbox.env in settings.json.
Fields§
§mode: SubprocessEnvMode§allow: Vec<String>Variables passed through whatever the mode would do with them — in
allowlist mode the extra names to keep, in inherit mode a way to
hand one of the engine’s own credentials (a provider’s api_key_env,
a variable an MCP server’s configuration reads) to every child on
purpose.
Implementations§
Source§impl SubprocessEnv
impl SubprocessEnv
Sourcepub fn resolve_in(
&self,
scope: EnvScope,
host: impl IntoIterator<Item = (OsString, OsString)>,
) -> EnvPlan
pub fn resolve_in( &self, scope: EnvScope, host: impl IntoIterator<Item = (OsString, OsString)>, ) -> EnvPlan
Self::resolve for a child whose spec says scope.
Trait Implementations§
Source§impl Clone for SubprocessEnv
impl Clone for SubprocessEnv
Source§impl Debug for SubprocessEnv
impl Debug for SubprocessEnv
Source§impl Default for SubprocessEnv
impl Default for SubprocessEnv
Source§impl<'de> Deserialize<'de> for SubprocessEnv
impl<'de> Deserialize<'de> for SubprocessEnv
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 SubprocessEnv
Source§impl JsonSchema for SubprocessEnv
impl JsonSchema for SubprocessEnv
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for SubprocessEnv
impl PartialEq for SubprocessEnv
Source§impl Serialize for SubprocessEnv
impl Serialize for SubprocessEnv
impl StructuralPartialEq for SubprocessEnv
Auto Trait Implementations§
impl Forget for SubprocessEnv
impl Freeze for SubprocessEnv
impl Move for SubprocessEnv
impl RefUnwindSafe for SubprocessEnv
impl Send for SubprocessEnv
impl Sync for SubprocessEnv
impl Unpin for SubprocessEnv
impl UnsafeUnpin for SubprocessEnv
impl UnwindSafe for SubprocessEnv
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