pub struct ExecDefaults {
pub user: Option<String>,
pub cwd: Option<String>,
pub env: BTreeMap<String, String>,
pub login: bool,
}Expand description
Defaults for exec into a sandbox. Per-call options override them.
Fields§
§user: Option<String>Guest user: a name (dev), uid, or uid:gid. Names are resolved in the
guest, and set HOME/USER/LOGNAME unless given in env.
cwd: Option<String>Working directory in the guest.
env: BTreeMap<String, String>Environment for exec (merged over the instance env).
login: boolRun argv through the user’s login shell ($SHELL -l -c 'exec "$@"'), so
profile scripts run. argv is still passed as separate arguments.
Implementations§
Trait Implementations§
Source§impl Clone for ExecDefaults
impl Clone for ExecDefaults
Source§impl Debug for ExecDefaults
impl Debug for ExecDefaults
Source§impl Default for ExecDefaults
impl Default for ExecDefaults
Source§impl<'de> Deserialize<'de> for ExecDefaults
impl<'de> Deserialize<'de> for ExecDefaults
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
Source§impl JsonSchema for ExecDefaults
impl JsonSchema for ExecDefaults
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 ExecDefaults
impl PartialEq for ExecDefaults
Source§impl Serialize for ExecDefaults
impl Serialize for ExecDefaults
impl StructuralPartialEq for ExecDefaults
Auto Trait Implementations§
impl Freeze for ExecDefaults
impl RefUnwindSafe for ExecDefaults
impl Send for ExecDefaults
impl Sync for ExecDefaults
impl Unpin for ExecDefaults
impl UnsafeUnpin for ExecDefaults
impl UnwindSafe for ExecDefaults
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