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