pub enum Component {
Sandbox {Show 14 fields
image: String,
memory: Option<u32>,
cpus: Option<u32>,
volumes: Vec<String>,
ports: Vec<String>,
envs: Vec<String>,
env_file: Option<Utf8UnixPathBuf>,
depends_on: Vec<String>,
workdir: Option<Utf8UnixPathBuf>,
shell: Option<String>,
scripts: HashMap<String, String>,
imports: HashMap<String, Utf8UnixPathBuf>,
exports: HashMap<String, Utf8UnixPathBuf>,
scope: Option<String>,
},
Build {},
Group {},
}Expand description
The component to add to the Microsandbox configuration.
Variants§
Sandbox
A sandbox component.
Fields
§
env_file: Option<Utf8UnixPathBuf>The environment file to use.
§
workdir: Option<Utf8UnixPathBuf>The working directory to use for the sandbox.
§
imports: HashMap<String, Utf8UnixPathBuf>The imports to use for the sandbox.
§
exports: HashMap<String, Utf8UnixPathBuf>The exports to use for the sandbox.
Build
A build component.
Group
A group component.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Component
impl RefUnwindSafe for Component
impl Send for Component
impl Sync for Component
impl Unpin for Component
impl UnwindSafe for Component
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more