pub struct ScriptingConfig {
pub allow_env: Vec<String>,
}Expand description
Opt-in relaxations of the scripting sandbox. Every field defaults to
the locked-down value; an operator who widens it is stating they
understand the exposure — same posture as allow.net.
Fields§
§allow_env: Vec<String>Server environment variable names a script may read via
process.env. Empty (default) ⇒ process.env is {}. Only names
listed here, and only if present in the server’s environment, are
exposed — a script never sees an ambient secret the operator did
not name.
Trait Implementations§
Source§impl Clone for ScriptingConfig
impl Clone for ScriptingConfig
Source§fn clone(&self) -> ScriptingConfig
fn clone(&self) -> ScriptingConfig
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 moreSource§impl Debug for ScriptingConfig
impl Debug for ScriptingConfig
Source§impl Default for ScriptingConfig
impl Default for ScriptingConfig
Source§fn default() -> ScriptingConfig
fn default() -> ScriptingConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ScriptingConfigwhere
ScriptingConfig: Default,
impl<'de> Deserialize<'de> for ScriptingConfigwhere
ScriptingConfig: Default,
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 ScriptingConfig
impl RefUnwindSafe for ScriptingConfig
impl Send for ScriptingConfig
impl Sync for ScriptingConfig
impl Unpin for ScriptingConfig
impl UnsafeUnpin for ScriptingConfig
impl UnwindSafe for ScriptingConfig
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