Struct dagger_sdk::DirectoryAsModuleOptsBuilder
source · pub struct DirectoryAsModuleOptsBuilder<'a> { /* private fields */ }Expand description
Builder for DirectoryAsModuleOpts.
Implementations§
source§impl<'a> DirectoryAsModuleOptsBuilder<'a>
impl<'a> DirectoryAsModuleOptsBuilder<'a>
sourcepub fn engine_version<VALUE: Into<&'a str>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn engine_version<VALUE: Into<&'a str>>( &mut self, value: VALUE, ) -> &mut Self
The engine version to upgrade to.
sourcepub fn source_root_path<VALUE: Into<&'a str>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn source_root_path<VALUE: Into<&'a str>>( &mut self, value: VALUE, ) -> &mut Self
An optional subpath of the directory which contains the module’s configuration file. This is needed when the module code is in a subdirectory but requires parent directories to be loaded in order to execute. For example, the module source code may need a go.mod, project.toml, package.json, etc. file from a parent directory. If not set, the module source code is loaded from the root of the directory.
sourcepub fn build(
&self,
) -> Result<DirectoryAsModuleOpts<'a>, DirectoryAsModuleOptsBuilderError>
pub fn build( &self, ) -> Result<DirectoryAsModuleOpts<'a>, DirectoryAsModuleOptsBuilderError>
Trait Implementations§
source§impl<'a> Clone for DirectoryAsModuleOptsBuilder<'a>
impl<'a> Clone for DirectoryAsModuleOptsBuilder<'a>
source§fn clone(&self) -> DirectoryAsModuleOptsBuilder<'a>
fn clone(&self) -> DirectoryAsModuleOptsBuilder<'a>
Returns a copy of the value. Read more
1.0.0 · 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 DirectoryAsModuleOptsBuilder<'a>
impl<'a> RefUnwindSafe for DirectoryAsModuleOptsBuilder<'a>
impl<'a> Send for DirectoryAsModuleOptsBuilder<'a>
impl<'a> Sync for DirectoryAsModuleOptsBuilder<'a>
impl<'a> Unpin for DirectoryAsModuleOptsBuilder<'a>
impl<'a> UnwindSafe for DirectoryAsModuleOptsBuilder<'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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)