pub struct CurrentModule {
pub proc: Option<Arc<DaggerSessionProc>>,
pub selection: Selection,
pub graphql_client: DynGraphQLClient,
}Fields§
§proc: Option<Arc<DaggerSessionProc>>§selection: Selection§graphql_client: DynGraphQLClientImplementations§
Source§impl CurrentModule
impl CurrentModule
Sourcepub async fn dependencies(&self) -> Result<Vec<Module>, DaggerError>
pub async fn dependencies(&self) -> Result<Vec<Module>, DaggerError>
The dependencies of the module.
Sourcepub fn generated_context_directory(&self) -> Directory
pub fn generated_context_directory(&self) -> Directory
The generated files and directories made on top of the module source’s context directory.
Sourcepub fn generators(&self) -> GeneratorGroup
pub fn generators(&self) -> GeneratorGroup
Return all generators defined by the module
§Arguments
opt- optional argument, see inner type for documentation, use_opts to use
Sourcepub fn generators_opts<'a>(
&self,
opts: CurrentModuleGeneratorsOpts<'a>,
) -> GeneratorGroup
pub fn generators_opts<'a>( &self, opts: CurrentModuleGeneratorsOpts<'a>, ) -> GeneratorGroup
Return all generators defined by the module
§Arguments
opt- optional argument, see inner type for documentation, use_opts to use
Sourcepub async fn id(&self) -> Result<Id, DaggerError>
pub async fn id(&self) -> Result<Id, DaggerError>
A unique identifier for this CurrentModule.
Sourcepub async fn name(&self) -> Result<String, DaggerError>
pub async fn name(&self) -> Result<String, DaggerError>
The name of the module being executed in
Sourcepub fn source(&self) -> Directory
pub fn source(&self) -> Directory
The directory containing the module’s source code loaded into the engine (plus any generated code that may have been created).
Sourcepub fn workdir(&self, path: impl Into<String>) -> Directory
pub fn workdir(&self, path: impl Into<String>) -> Directory
Load a directory from the module’s scratch working directory, including any changes that may have been made to it during module function execution.
§Arguments
path- Location of the directory to access (e.g., “.”).opt- optional argument, see inner type for documentation, use_opts to use
Sourcepub fn workdir_opts<'a>(
&self,
path: impl Into<String>,
opts: CurrentModuleWorkdirOpts<'a>,
) -> Directory
pub fn workdir_opts<'a>( &self, path: impl Into<String>, opts: CurrentModuleWorkdirOpts<'a>, ) -> Directory
Load a directory from the module’s scratch working directory, including any changes that may have been made to it during module function execution.
§Arguments
path- Location of the directory to access (e.g., “.”).opt- optional argument, see inner type for documentation, use_opts to use
Sourcepub fn workdir_file(&self, path: impl Into<String>) -> File
pub fn workdir_file(&self, path: impl Into<String>) -> File
Load a file from the module’s scratch working directory, including any changes that may have been made to it during module function execution.Load a file from the module’s scratch working directory, including any changes that may have been made to it during module function execution.
§Arguments
path- Location of the file to retrieve (e.g., “README.md”).
Trait Implementations§
Source§impl Clone for CurrentModule
impl Clone for CurrentModule
Source§fn clone(&self) -> CurrentModule
fn clone(&self) -> CurrentModule
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl IntoID<Id> for CurrentModule
impl IntoID<Id> for CurrentModule
Source§impl Loadable for CurrentModule
impl Loadable for CurrentModule
Source§fn graphql_type() -> &'static str
fn graphql_type() -> &'static str
"Container").Source§fn from_query(
proc: Option<Arc<DaggerSessionProc>>,
selection: Selection,
graphql_client: DynGraphQLClient,
) -> Self
fn from_query( proc: Option<Arc<DaggerSessionProc>>, selection: Selection, graphql_client: DynGraphQLClient, ) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for CurrentModule
impl !UnwindSafe for CurrentModule
impl Freeze for CurrentModule
impl Send for CurrentModule
impl Sync for CurrentModule
impl Unpin for CurrentModule
impl UnsafeUnpin for CurrentModule
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
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> ⓘ
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> ⓘ
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