# `Dagger.Binding`
[🔗](https://github.com/dagger/dagger/blob/v0.20.8/sdk/elixir/lib/dagger/gen/binding.ex#L2)

Dagger.Binding

# `t`

```elixir
@type t() :: %Dagger.Binding{client: term(), query_builder: term()}
```

# `as_address`

```elixir
@spec as_address(t()) :: Dagger.Address.t()
```

Retrieve the binding value, as type Address

# `as_cache_volume`

```elixir
@spec as_cache_volume(t()) :: Dagger.CacheVolume.t()
```

Retrieve the binding value, as type CacheVolume

# `as_changeset`

```elixir
@spec as_changeset(t()) :: Dagger.Changeset.t()
```

Retrieve the binding value, as type Changeset

# `as_check`

```elixir
@spec as_check(t()) :: Dagger.Check.t()
```

Retrieve the binding value, as type Check

# `as_check_group`

```elixir
@spec as_check_group(t()) :: Dagger.CheckGroup.t()
```

Retrieve the binding value, as type CheckGroup

# `as_cloud`

```elixir
@spec as_cloud(t()) :: Dagger.Cloud.t()
```

Retrieve the binding value, as type Cloud

# `as_container`

```elixir
@spec as_container(t()) :: Dagger.Container.t()
```

Retrieve the binding value, as type Container

# `as_diff_stat`

```elixir
@spec as_diff_stat(t()) :: Dagger.DiffStat.t()
```

Retrieve the binding value, as type DiffStat

# `as_directory`

```elixir
@spec as_directory(t()) :: Dagger.Directory.t()
```

Retrieve the binding value, as type Directory

# `as_env`

```elixir
@spec as_env(t()) :: Dagger.Env.t()
```

Retrieve the binding value, as type Env

# `as_env_file`

```elixir
@spec as_env_file(t()) :: Dagger.EnvFile.t()
```

Retrieve the binding value, as type EnvFile

# `as_file`

```elixir
@spec as_file(t()) :: Dagger.File.t()
```

Retrieve the binding value, as type File

# `as_generator`

```elixir
@spec as_generator(t()) :: Dagger.Generator.t()
```

Retrieve the binding value, as type Generator

# `as_generator_group`

```elixir
@spec as_generator_group(t()) :: Dagger.GeneratorGroup.t()
```

Retrieve the binding value, as type GeneratorGroup

# `as_git_ref`

```elixir
@spec as_git_ref(t()) :: Dagger.GitRef.t()
```

Retrieve the binding value, as type GitRef

# `as_git_repository`

```elixir
@spec as_git_repository(t()) :: Dagger.GitRepository.t()
```

Retrieve the binding value, as type GitRepository

# `as_json_value`

```elixir
@spec as_json_value(t()) :: Dagger.JSONValue.t()
```

Retrieve the binding value, as type JSONValue

# `as_module`

```elixir
@spec as_module(t()) :: Dagger.Module.t()
```

Retrieve the binding value, as type Module

# `as_module_config_client`

```elixir
@spec as_module_config_client(t()) :: Dagger.ModuleConfigClient.t()
```

Retrieve the binding value, as type ModuleConfigClient

# `as_module_source`

```elixir
@spec as_module_source(t()) :: Dagger.ModuleSource.t()
```

Retrieve the binding value, as type ModuleSource

# `as_search_result`

```elixir
@spec as_search_result(t()) :: Dagger.SearchResult.t()
```

Retrieve the binding value, as type SearchResult

# `as_search_submatch`

```elixir
@spec as_search_submatch(t()) :: Dagger.SearchSubmatch.t()
```

Retrieve the binding value, as type SearchSubmatch

# `as_secret`

```elixir
@spec as_secret(t()) :: Dagger.Secret.t()
```

Retrieve the binding value, as type Secret

# `as_service`

```elixir
@spec as_service(t()) :: Dagger.Service.t()
```

Retrieve the binding value, as type Service

# `as_socket`

```elixir
@spec as_socket(t()) :: Dagger.Socket.t()
```

Retrieve the binding value, as type Socket

# `as_stat`

```elixir
@spec as_stat(t()) :: Dagger.Stat.t() | nil
```

Retrieve the binding value, as type Stat

# `as_string`

```elixir
@spec as_string(t()) :: {:ok, String.t() | nil} | {:error, term()}
```

Returns the binding's string value

# `as_up`

```elixir
@spec as_up(t()) :: Dagger.Up.t()
```

Retrieve the binding value, as type Up

# `as_up_group`

```elixir
@spec as_up_group(t()) :: Dagger.UpGroup.t()
```

Retrieve the binding value, as type UpGroup

# `as_workspace`

```elixir
@spec as_workspace(t()) :: Dagger.Workspace.t()
```

Retrieve the binding value, as type Workspace

# `digest`

```elixir
@spec digest(t()) :: {:ok, String.t()} | {:error, term()}
```

Returns the digest of the binding value

# `id`

```elixir
@spec id(t()) :: {:ok, Dagger.BindingID.t()} | {:error, term()}
```

A unique identifier for this Binding.

# `name`

```elixir
@spec name(t()) :: {:ok, String.t()} | {:error, term()}
```

Returns the binding name

# `null?`

```elixir
@spec null?(t()) :: {:ok, boolean()} | {:error, term()}
```

Returns true if the binding is null

# `type_name`

```elixir
@spec type_name(t()) :: {:ok, String.t()} | {:error, term()}
```

Returns the binding type

---

*Consult [api-reference.md](api-reference.md) for complete listing*
