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 source_subpath<VALUE: Into<&'a str>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn source_subpath<VALUE: Into<&'a str>>( &mut self, value: VALUE ) -> &mut Self
An optional subpath of the directory which contains the module’s source code. 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> 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