pub struct Runtime {
pub privileged: bool,
pub pid_namespace: Option<String>,
pub network_mode: Option<String>,
pub user: Option<String>,
pub mounts: Vec<Mount>,
pub security: Option<Security>,
pub egress: Option<String>,
}Expand description
Runtime privileges. The defaults are the unprivileged ones.
Fields§
§privileged: boolFull host capabilities.
pid_namespace: Option<String>host to share the host PID namespace.
network_mode: Option<String>host to share the host network namespace.
user: Option<String>uid[:gid] to run as.
mounts: Vec<Mount>Host bind mounts.
security: Option<Security>Hardened execution settings.
egress: Option<String>internet for public-internet-only egress.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Runtime
impl<'de> Deserialize<'de> for Runtime
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 Runtime
impl StructuralPartialEq for Runtime
Auto Trait Implementations§
impl Forget for Runtime
impl Freeze for Runtime
impl Move for Runtime
impl RefUnwindSafe for Runtime
impl Send for Runtime
impl Sync for Runtime
impl Unpin for Runtime
impl UnsafeUnpin for Runtime
impl UnwindSafe for Runtime
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