pub struct WorkspaceWithInitModuleOptsBuilder<'a> { /* private fields */ }Expand description
Builder for WorkspaceWithInitModuleOpts.
Implementations§
Source§impl<'a> WorkspaceWithInitModuleOptsBuilder<'a>
impl<'a> WorkspaceWithInitModuleOptsBuilder<'a>
Sourcepub fn entrypoint<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn entrypoint<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Select this module as the entrypoint and install it. False prevents automatic selection. When omitted, select only if both path and name are omitted and the module is installed.
Sourcepub fn install<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn install<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Install the module. When omitted, install only if path is omitted.
Sourcepub fn name<VALUE: Into<&'a str>>(&mut self, value: VALUE) -> &mut Self
pub fn name<VALUE: Into<&'a str>>(&mut self, value: VALUE) -> &mut Self
Module name. The engine infers it from path, the active config file, or the workspace root when omitted.
Sourcepub fn path<VALUE: Into<&'a str>>(&mut self, value: VALUE) -> &mut Self
pub fn path<VALUE: Into<&'a str>>(&mut self, value: VALUE) -> &mut Self
Module path relative to the workspace cwd, or an absolute workspace path. Defaults to .dagger/modules/
Sourcepub fn settings<VALUE: Into<Json>>(&mut self, value: VALUE) -> &mut Self
pub fn settings<VALUE: Into<Json>>(&mut self, value: VALUE) -> &mut Self
Explicit SDK-module constructor setting overrides for this scope.
Sourcepub fn build(
&self,
) -> Result<WorkspaceWithInitModuleOpts<'a>, WorkspaceWithInitModuleOptsBuilderError>
pub fn build( &self, ) -> Result<WorkspaceWithInitModuleOpts<'a>, WorkspaceWithInitModuleOptsBuilderError>
Trait Implementations§
Source§impl<'a> Clone for WorkspaceWithInitModuleOptsBuilder<'a>
impl<'a> Clone for WorkspaceWithInitModuleOptsBuilder<'a>
Source§fn clone(&self) -> WorkspaceWithInitModuleOptsBuilder<'a>
fn clone(&self) -> WorkspaceWithInitModuleOptsBuilder<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for WorkspaceWithInitModuleOptsBuilder<'a>
impl<'a> RefUnwindSafe for WorkspaceWithInitModuleOptsBuilder<'a>
impl<'a> Send for WorkspaceWithInitModuleOptsBuilder<'a>
impl<'a> Sync for WorkspaceWithInitModuleOptsBuilder<'a>
impl<'a> Unpin for WorkspaceWithInitModuleOptsBuilder<'a>
impl<'a> UnsafeUnpin for WorkspaceWithInitModuleOptsBuilder<'a>
impl<'a> UnwindSafe for WorkspaceWithInitModuleOptsBuilder<'a>
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