pub struct Env {
pub proc: Option<Arc<DaggerSessionProc>>,
pub selection: Selection,
pub graphql_client: DynGraphQLClient,
}
Fields§
§proc: Option<Arc<DaggerSessionProc>>
§selection: Selection
§graphql_client: DynGraphQLClient
Implementations§
Source§impl Env
impl Env
Sourcepub async fn id(&self) -> Result<EnvId, DaggerError>
pub async fn id(&self) -> Result<EnvId, DaggerError>
A unique identifier for this Env.
Sourcepub fn with_address_input(
&self,
name: impl Into<String>,
value: impl IntoID<AddressId>,
description: impl Into<String>,
) -> Env
pub fn with_address_input( &self, name: impl Into<String>, value: impl IntoID<AddressId>, description: impl Into<String>, ) -> Env
Create or update a binding of type Address in the environment
§Arguments
name
- The name of the bindingvalue
- The Address value to assign to the bindingdescription
- The purpose of the input
Sourcepub fn with_address_output(
&self,
name: impl Into<String>,
description: impl Into<String>,
) -> Env
pub fn with_address_output( &self, name: impl Into<String>, description: impl Into<String>, ) -> Env
Declare a desired Address output to be assigned in the environment
§Arguments
name
- The name of the bindingdescription
- A description of the desired value of the binding
Sourcepub fn with_cache_volume_input(
&self,
name: impl Into<String>,
value: impl IntoID<CacheVolumeId>,
description: impl Into<String>,
) -> Env
pub fn with_cache_volume_input( &self, name: impl Into<String>, value: impl IntoID<CacheVolumeId>, description: impl Into<String>, ) -> Env
Create or update a binding of type CacheVolume in the environment
§Arguments
name
- The name of the bindingvalue
- The CacheVolume value to assign to the bindingdescription
- The purpose of the input
Sourcepub fn with_cache_volume_output(
&self,
name: impl Into<String>,
description: impl Into<String>,
) -> Env
pub fn with_cache_volume_output( &self, name: impl Into<String>, description: impl Into<String>, ) -> Env
Declare a desired CacheVolume output to be assigned in the environment
§Arguments
name
- The name of the bindingdescription
- A description of the desired value of the binding
Sourcepub fn with_changeset_input(
&self,
name: impl Into<String>,
value: impl IntoID<ChangesetId>,
description: impl Into<String>,
) -> Env
pub fn with_changeset_input( &self, name: impl Into<String>, value: impl IntoID<ChangesetId>, description: impl Into<String>, ) -> Env
Create or update a binding of type Changeset in the environment
§Arguments
name
- The name of the bindingvalue
- The Changeset value to assign to the bindingdescription
- The purpose of the input
Sourcepub fn with_changeset_output(
&self,
name: impl Into<String>,
description: impl Into<String>,
) -> Env
pub fn with_changeset_output( &self, name: impl Into<String>, description: impl Into<String>, ) -> Env
Declare a desired Changeset output to be assigned in the environment
§Arguments
name
- The name of the bindingdescription
- A description of the desired value of the binding
Sourcepub fn with_cloud_input(
&self,
name: impl Into<String>,
value: impl IntoID<CloudId>,
description: impl Into<String>,
) -> Env
pub fn with_cloud_input( &self, name: impl Into<String>, value: impl IntoID<CloudId>, description: impl Into<String>, ) -> Env
Create or update a binding of type Cloud in the environment
§Arguments
name
- The name of the bindingvalue
- The Cloud value to assign to the bindingdescription
- The purpose of the input
Sourcepub fn with_cloud_output(
&self,
name: impl Into<String>,
description: impl Into<String>,
) -> Env
pub fn with_cloud_output( &self, name: impl Into<String>, description: impl Into<String>, ) -> Env
Declare a desired Cloud output to be assigned in the environment
§Arguments
name
- The name of the bindingdescription
- A description of the desired value of the binding
Sourcepub fn with_container_input(
&self,
name: impl Into<String>,
value: impl IntoID<ContainerId>,
description: impl Into<String>,
) -> Env
pub fn with_container_input( &self, name: impl Into<String>, value: impl IntoID<ContainerId>, description: impl Into<String>, ) -> Env
Create or update a binding of type Container in the environment
§Arguments
name
- The name of the bindingvalue
- The Container value to assign to the bindingdescription
- The purpose of the input
Sourcepub fn with_container_output(
&self,
name: impl Into<String>,
description: impl Into<String>,
) -> Env
pub fn with_container_output( &self, name: impl Into<String>, description: impl Into<String>, ) -> Env
Declare a desired Container output to be assigned in the environment
§Arguments
name
- The name of the bindingdescription
- A description of the desired value of the binding
Sourcepub fn with_current_module(&self) -> Env
pub fn with_current_module(&self) -> Env
Installs the current module into the environment, exposing its functions to the model Contextual path arguments will be populated using the environment’s workspace.
Sourcepub fn with_directory_input(
&self,
name: impl Into<String>,
value: impl IntoID<DirectoryId>,
description: impl Into<String>,
) -> Env
pub fn with_directory_input( &self, name: impl Into<String>, value: impl IntoID<DirectoryId>, description: impl Into<String>, ) -> Env
Create or update a binding of type Directory in the environment
§Arguments
name
- The name of the bindingvalue
- The Directory value to assign to the bindingdescription
- The purpose of the input
Sourcepub fn with_directory_output(
&self,
name: impl Into<String>,
description: impl Into<String>,
) -> Env
pub fn with_directory_output( &self, name: impl Into<String>, description: impl Into<String>, ) -> Env
Declare a desired Directory output to be assigned in the environment
§Arguments
name
- The name of the bindingdescription
- A description of the desired value of the binding
Sourcepub fn with_env_file_input(
&self,
name: impl Into<String>,
value: impl IntoID<EnvFileId>,
description: impl Into<String>,
) -> Env
pub fn with_env_file_input( &self, name: impl Into<String>, value: impl IntoID<EnvFileId>, description: impl Into<String>, ) -> Env
Create or update a binding of type EnvFile in the environment
§Arguments
name
- The name of the bindingvalue
- The EnvFile value to assign to the bindingdescription
- The purpose of the input
Sourcepub fn with_env_file_output(
&self,
name: impl Into<String>,
description: impl Into<String>,
) -> Env
pub fn with_env_file_output( &self, name: impl Into<String>, description: impl Into<String>, ) -> Env
Declare a desired EnvFile output to be assigned in the environment
§Arguments
name
- The name of the bindingdescription
- A description of the desired value of the binding
Sourcepub fn with_env_input(
&self,
name: impl Into<String>,
value: impl IntoID<EnvId>,
description: impl Into<String>,
) -> Env
pub fn with_env_input( &self, name: impl Into<String>, value: impl IntoID<EnvId>, description: impl Into<String>, ) -> Env
Create or update a binding of type Env in the environment
§Arguments
name
- The name of the bindingvalue
- The Env value to assign to the bindingdescription
- The purpose of the input
Sourcepub fn with_env_output(
&self,
name: impl Into<String>,
description: impl Into<String>,
) -> Env
pub fn with_env_output( &self, name: impl Into<String>, description: impl Into<String>, ) -> Env
Declare a desired Env output to be assigned in the environment
§Arguments
name
- The name of the bindingdescription
- A description of the desired value of the binding
Sourcepub fn with_file_input(
&self,
name: impl Into<String>,
value: impl IntoID<FileId>,
description: impl Into<String>,
) -> Env
pub fn with_file_input( &self, name: impl Into<String>, value: impl IntoID<FileId>, description: impl Into<String>, ) -> Env
Create or update a binding of type File in the environment
§Arguments
name
- The name of the bindingvalue
- The File value to assign to the bindingdescription
- The purpose of the input
Sourcepub fn with_file_output(
&self,
name: impl Into<String>,
description: impl Into<String>,
) -> Env
pub fn with_file_output( &self, name: impl Into<String>, description: impl Into<String>, ) -> Env
Declare a desired File output to be assigned in the environment
§Arguments
name
- The name of the bindingdescription
- A description of the desired value of the binding
Sourcepub fn with_git_ref_input(
&self,
name: impl Into<String>,
value: impl IntoID<GitRefId>,
description: impl Into<String>,
) -> Env
pub fn with_git_ref_input( &self, name: impl Into<String>, value: impl IntoID<GitRefId>, description: impl Into<String>, ) -> Env
Create or update a binding of type GitRef in the environment
§Arguments
name
- The name of the bindingvalue
- The GitRef value to assign to the bindingdescription
- The purpose of the input
Sourcepub fn with_git_ref_output(
&self,
name: impl Into<String>,
description: impl Into<String>,
) -> Env
pub fn with_git_ref_output( &self, name: impl Into<String>, description: impl Into<String>, ) -> Env
Declare a desired GitRef output to be assigned in the environment
§Arguments
name
- The name of the bindingdescription
- A description of the desired value of the binding
Sourcepub fn with_git_repository_input(
&self,
name: impl Into<String>,
value: impl IntoID<GitRepositoryId>,
description: impl Into<String>,
) -> Env
pub fn with_git_repository_input( &self, name: impl Into<String>, value: impl IntoID<GitRepositoryId>, description: impl Into<String>, ) -> Env
Create or update a binding of type GitRepository in the environment
§Arguments
name
- The name of the bindingvalue
- The GitRepository value to assign to the bindingdescription
- The purpose of the input
Sourcepub fn with_git_repository_output(
&self,
name: impl Into<String>,
description: impl Into<String>,
) -> Env
pub fn with_git_repository_output( &self, name: impl Into<String>, description: impl Into<String>, ) -> Env
Declare a desired GitRepository output to be assigned in the environment
§Arguments
name
- The name of the bindingdescription
- A description of the desired value of the binding
Sourcepub fn with_json_value_input(
&self,
name: impl Into<String>,
value: impl IntoID<JsonValueId>,
description: impl Into<String>,
) -> Env
pub fn with_json_value_input( &self, name: impl Into<String>, value: impl IntoID<JsonValueId>, description: impl Into<String>, ) -> Env
Create or update a binding of type JSONValue in the environment
§Arguments
name
- The name of the bindingvalue
- The JSONValue value to assign to the bindingdescription
- The purpose of the input
Sourcepub fn with_json_value_output(
&self,
name: impl Into<String>,
description: impl Into<String>,
) -> Env
pub fn with_json_value_output( &self, name: impl Into<String>, description: impl Into<String>, ) -> Env
Declare a desired JSONValue output to be assigned in the environment
§Arguments
name
- The name of the bindingdescription
- A description of the desired value of the binding
Sourcepub fn with_module(&self, module: impl IntoID<ModuleId>) -> Env
pub fn with_module(&self, module: impl IntoID<ModuleId>) -> Env
Installs a module into the environment, exposing its functions to the model Contextual path arguments will be populated using the environment’s workspace.
Sourcepub fn with_module_config_client_input(
&self,
name: impl Into<String>,
value: impl IntoID<ModuleConfigClientId>,
description: impl Into<String>,
) -> Env
pub fn with_module_config_client_input( &self, name: impl Into<String>, value: impl IntoID<ModuleConfigClientId>, description: impl Into<String>, ) -> Env
Create or update a binding of type ModuleConfigClient in the environment
§Arguments
name
- The name of the bindingvalue
- The ModuleConfigClient value to assign to the bindingdescription
- The purpose of the input
Sourcepub fn with_module_config_client_output(
&self,
name: impl Into<String>,
description: impl Into<String>,
) -> Env
pub fn with_module_config_client_output( &self, name: impl Into<String>, description: impl Into<String>, ) -> Env
Declare a desired ModuleConfigClient output to be assigned in the environment
§Arguments
name
- The name of the bindingdescription
- A description of the desired value of the binding
Sourcepub fn with_module_input(
&self,
name: impl Into<String>,
value: impl IntoID<ModuleId>,
description: impl Into<String>,
) -> Env
pub fn with_module_input( &self, name: impl Into<String>, value: impl IntoID<ModuleId>, description: impl Into<String>, ) -> Env
Create or update a binding of type Module in the environment
§Arguments
name
- The name of the bindingvalue
- The Module value to assign to the bindingdescription
- The purpose of the input
Sourcepub fn with_module_output(
&self,
name: impl Into<String>,
description: impl Into<String>,
) -> Env
pub fn with_module_output( &self, name: impl Into<String>, description: impl Into<String>, ) -> Env
Declare a desired Module output to be assigned in the environment
§Arguments
name
- The name of the bindingdescription
- A description of the desired value of the binding
Sourcepub fn with_module_source_input(
&self,
name: impl Into<String>,
value: impl IntoID<ModuleSourceId>,
description: impl Into<String>,
) -> Env
pub fn with_module_source_input( &self, name: impl Into<String>, value: impl IntoID<ModuleSourceId>, description: impl Into<String>, ) -> Env
Create or update a binding of type ModuleSource in the environment
§Arguments
name
- The name of the bindingvalue
- The ModuleSource value to assign to the bindingdescription
- The purpose of the input
Sourcepub fn with_module_source_output(
&self,
name: impl Into<String>,
description: impl Into<String>,
) -> Env
pub fn with_module_source_output( &self, name: impl Into<String>, description: impl Into<String>, ) -> Env
Declare a desired ModuleSource output to be assigned in the environment
§Arguments
name
- The name of the bindingdescription
- A description of the desired value of the binding
Sourcepub fn with_search_result_input(
&self,
name: impl Into<String>,
value: impl IntoID<SearchResultId>,
description: impl Into<String>,
) -> Env
pub fn with_search_result_input( &self, name: impl Into<String>, value: impl IntoID<SearchResultId>, description: impl Into<String>, ) -> Env
Create or update a binding of type SearchResult in the environment
§Arguments
name
- The name of the bindingvalue
- The SearchResult value to assign to the bindingdescription
- The purpose of the input
Sourcepub fn with_search_result_output(
&self,
name: impl Into<String>,
description: impl Into<String>,
) -> Env
pub fn with_search_result_output( &self, name: impl Into<String>, description: impl Into<String>, ) -> Env
Declare a desired SearchResult output to be assigned in the environment
§Arguments
name
- The name of the bindingdescription
- A description of the desired value of the binding
Sourcepub fn with_search_submatch_input(
&self,
name: impl Into<String>,
value: impl IntoID<SearchSubmatchId>,
description: impl Into<String>,
) -> Env
pub fn with_search_submatch_input( &self, name: impl Into<String>, value: impl IntoID<SearchSubmatchId>, description: impl Into<String>, ) -> Env
Create or update a binding of type SearchSubmatch in the environment
§Arguments
name
- The name of the bindingvalue
- The SearchSubmatch value to assign to the bindingdescription
- The purpose of the input
Sourcepub fn with_search_submatch_output(
&self,
name: impl Into<String>,
description: impl Into<String>,
) -> Env
pub fn with_search_submatch_output( &self, name: impl Into<String>, description: impl Into<String>, ) -> Env
Declare a desired SearchSubmatch output to be assigned in the environment
§Arguments
name
- The name of the bindingdescription
- A description of the desired value of the binding
Sourcepub fn with_secret_input(
&self,
name: impl Into<String>,
value: impl IntoID<SecretId>,
description: impl Into<String>,
) -> Env
pub fn with_secret_input( &self, name: impl Into<String>, value: impl IntoID<SecretId>, description: impl Into<String>, ) -> Env
Create or update a binding of type Secret in the environment
§Arguments
name
- The name of the bindingvalue
- The Secret value to assign to the bindingdescription
- The purpose of the input
Sourcepub fn with_secret_output(
&self,
name: impl Into<String>,
description: impl Into<String>,
) -> Env
pub fn with_secret_output( &self, name: impl Into<String>, description: impl Into<String>, ) -> Env
Declare a desired Secret output to be assigned in the environment
§Arguments
name
- The name of the bindingdescription
- A description of the desired value of the binding
Sourcepub fn with_service_input(
&self,
name: impl Into<String>,
value: impl IntoID<ServiceId>,
description: impl Into<String>,
) -> Env
pub fn with_service_input( &self, name: impl Into<String>, value: impl IntoID<ServiceId>, description: impl Into<String>, ) -> Env
Create or update a binding of type Service in the environment
§Arguments
name
- The name of the bindingvalue
- The Service value to assign to the bindingdescription
- The purpose of the input
Sourcepub fn with_service_output(
&self,
name: impl Into<String>,
description: impl Into<String>,
) -> Env
pub fn with_service_output( &self, name: impl Into<String>, description: impl Into<String>, ) -> Env
Declare a desired Service output to be assigned in the environment
§Arguments
name
- The name of the bindingdescription
- A description of the desired value of the binding
Sourcepub fn with_socket_input(
&self,
name: impl Into<String>,
value: impl IntoID<SocketId>,
description: impl Into<String>,
) -> Env
pub fn with_socket_input( &self, name: impl Into<String>, value: impl IntoID<SocketId>, description: impl Into<String>, ) -> Env
Create or update a binding of type Socket in the environment
§Arguments
name
- The name of the bindingvalue
- The Socket value to assign to the bindingdescription
- The purpose of the input
Sourcepub fn with_socket_output(
&self,
name: impl Into<String>,
description: impl Into<String>,
) -> Env
pub fn with_socket_output( &self, name: impl Into<String>, description: impl Into<String>, ) -> Env
Declare a desired Socket output to be assigned in the environment
§Arguments
name
- The name of the bindingdescription
- A description of the desired value of the binding
Sourcepub fn with_string_input(
&self,
name: impl Into<String>,
value: impl Into<String>,
description: impl Into<String>,
) -> Env
pub fn with_string_input( &self, name: impl Into<String>, value: impl Into<String>, description: impl Into<String>, ) -> Env
Provides a string input binding to the environment
§Arguments
name
- The name of the bindingvalue
- The string value to assign to the bindingdescription
- The description of the input
Sourcepub fn with_string_output(
&self,
name: impl Into<String>,
description: impl Into<String>,
) -> Env
pub fn with_string_output( &self, name: impl Into<String>, description: impl Into<String>, ) -> Env
Declares a desired string output binding
§Arguments
name
- The name of the bindingdescription
- The description of the output
Sourcepub fn with_workspace(&self, workspace: impl IntoID<DirectoryId>) -> Env
pub fn with_workspace(&self, workspace: impl IntoID<DirectoryId>) -> Env
Returns a new environment with the provided workspace
§Arguments
workspace
- The directory to set as the host filesystem
Sourcepub fn without_outputs(&self) -> Env
pub fn without_outputs(&self) -> Env
Returns a new environment without any outputs