Env

Struct Env 

Source
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

Source

pub async fn id(&self) -> Result<EnvId, DaggerError>

A unique identifier for this Env.

Source

pub fn input(&self, name: impl Into<String>) -> Binding

retrieve an input value by name

Source

pub fn inputs(&self) -> Vec<Binding>

return all input values for the environment

Source

pub fn output(&self, name: impl Into<String>) -> Binding

retrieve an output value by name

Source

pub fn outputs(&self) -> Vec<Binding>

return all output values for the environment

Source

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 binding
  • value - The CacheVolume value to assign to the binding
  • description - The purpose of the input
Source

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 binding
  • description - A description of the desired value of the binding
Source

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 binding
  • value - The Cloud value to assign to the binding
  • description - The purpose of the input
Source

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 binding
  • description - A description of the desired value of the binding
Source

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 binding
  • value - The Container value to assign to the binding
  • description - The purpose of the input
Source

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 binding
  • description - A description of the desired value of the binding
Source

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 binding
  • value - The Directory value to assign to the binding
  • description - The purpose of the input
Source

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 binding
  • description - A description of the desired value of the binding
Source

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 binding
  • value - The Env value to assign to the binding
  • description - The purpose of the input
Source

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 binding
  • description - A description of the desired value of the binding
Source

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 binding
  • value - The File value to assign to the binding
  • description - The purpose of the input
Source

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 binding
  • description - A description of the desired value of the binding
Source

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 binding
  • value - The GitRef value to assign to the binding
  • description - The purpose of the input
Source

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 binding
  • description - A description of the desired value of the binding
Source

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 binding
  • value - The GitRepository value to assign to the binding
  • description - The purpose of the input
Source

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 binding
  • description - A description of the desired value of the binding
Source

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 binding
  • value - The JSONValue value to assign to the binding
  • description - The purpose of the input
Source

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 binding
  • description - A description of the desired value of the binding
Source

pub fn with_llm_input( &self, name: impl Into<String>, value: impl IntoID<Llmid>, description: impl Into<String>, ) -> Env

Create or update a binding of type LLM in the environment

§Arguments
  • name - The name of the binding
  • value - The LLM value to assign to the binding
  • description - The purpose of the input
Source

pub fn with_llm_output( &self, name: impl Into<String>, description: impl Into<String>, ) -> Env

Declare a desired LLM output to be assigned in the environment

§Arguments
  • name - The name of the binding
  • description - A description of the desired value of the binding
Source

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 binding
  • value - The ModuleConfigClient value to assign to the binding
  • description - The purpose of the input
Source

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 binding
  • description - A description of the desired value of the binding
Source

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 binding
  • value - The Module value to assign to the binding
  • description - The purpose of the input
Source

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 binding
  • description - A description of the desired value of the binding
Source

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 binding
  • value - The ModuleSource value to assign to the binding
  • description - The purpose of the input
Source

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 binding
  • description - A description of the desired value of the binding
Source

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 binding
  • value - The SearchResult value to assign to the binding
  • description - The purpose of the input
Source

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 binding
  • description - A description of the desired value of the binding
Source

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 binding
  • value - The SearchSubmatch value to assign to the binding
  • description - The purpose of the input
Source

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 binding
  • description - A description of the desired value of the binding
Source

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 binding
  • value - The Secret value to assign to the binding
  • description - The purpose of the input
Source

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 binding
  • description - A description of the desired value of the binding
Source

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 binding
  • value - The Service value to assign to the binding
  • description - The purpose of the input
Source

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 binding
  • description - A description of the desired value of the binding
Source

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 binding
  • value - The Socket value to assign to the binding
  • description - The purpose of the input
Source

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 binding
  • description - A description of the desired value of the binding
Source

pub fn with_string_input( &self, name: impl Into<String>, value: impl Into<String>, description: impl Into<String>, ) -> Env

Create or update an input value of type string

§Arguments
  • name - The name of the binding
  • value - The string value to assign to the binding
  • description - The description of the input
Source

pub fn with_string_output( &self, name: impl Into<String>, description: impl Into<String>, ) -> Env

Create or update an input value of type string

§Arguments
  • name - The name of the binding
  • description - The description of the output

Trait Implementations§

Source§

impl Clone for Env

Source§

fn clone(&self) -> Env

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl IntoID<EnvId> for Env

Source§

fn into_id( self, ) -> Pin<Box<dyn Future<Output = Result<EnvId, DaggerError>> + Send>>

Auto Trait Implementations§

§

impl Freeze for Env

§

impl !RefUnwindSafe for Env

§

impl Send for Env

§

impl Sync for Env

§

impl Unpin for Env

§

impl !UnwindSafe for Env

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,