pub struct MicrosandboxBuilder { /* private fields */ }Expand description
Builder for Microsandbox configuration
§Optional fields:
meta: The metadata for the configurationmodules: The modules to importbuilds: The builds to runsandboxes: The sandboxes to rungroups: The groups to run the sandboxes in
Implementations§
Source§impl MicrosandboxBuilder
impl MicrosandboxBuilder
Sourcepub fn modules(
self,
modules: impl IntoIterator<Item = (String, Module)>,
) -> Self
pub fn modules( self, modules: impl IntoIterator<Item = (String, Module)>, ) -> Self
Sets the modules to import
Sourcepub fn builds(self, builds: impl IntoIterator<Item = (String, Build)>) -> Self
pub fn builds(self, builds: impl IntoIterator<Item = (String, Build)>) -> Self
Sets the builds to run
Sourcepub fn sandboxes(
self,
sandboxes: impl IntoIterator<Item = (String, Sandbox)>,
) -> Self
pub fn sandboxes( self, sandboxes: impl IntoIterator<Item = (String, Sandbox)>, ) -> Self
Sets the sandboxes to run
Sourcepub fn groups(self, groups: impl IntoIterator<Item = (String, Group)>) -> Self
pub fn groups(self, groups: impl IntoIterator<Item = (String, Group)>) -> Self
Sets the groups to run the sandboxes in
Sourcepub fn build(self) -> MicrosandboxResult<Microsandbox>
pub fn build(self) -> MicrosandboxResult<Microsandbox>
Builds the Microsandbox configuration with validation
Sourcepub fn build_unchecked(self) -> Microsandbox
pub fn build_unchecked(self) -> Microsandbox
Builds the Microsandbox configuration without validation
Trait Implementations§
Source§impl Default for MicrosandboxBuilder
impl Default for MicrosandboxBuilder
Source§fn default() -> MicrosandboxBuilder
fn default() -> MicrosandboxBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MicrosandboxBuilder
impl RefUnwindSafe for MicrosandboxBuilder
impl Send for MicrosandboxBuilder
impl Sync for MicrosandboxBuilder
impl Unpin for MicrosandboxBuilder
impl UnwindSafe for MicrosandboxBuilder
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> 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