# `Dagger.InterfaceTypeDef`
[🔗](https://github.com/dagger/dagger/blob/v0.20.5/sdk/elixir/lib/dagger/gen/interface_type_def.ex#L2)

A definition of a custom interface defined in a Module.

# `t`

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

# `description`

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

The doc string for the interface, if any.

# `functions`

```elixir
@spec functions(t()) :: {:ok, [Dagger.Function.t()]} | {:error, term()}
```

Functions defined on this interface, if any.

# `id`

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

A unique identifier for this InterfaceTypeDef.

# `name`

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

The name of the interface.

# `source_map`

```elixir
@spec source_map(t()) :: Dagger.SourceMap.t() | nil
```

The location of this interface declaration.

# `source_module_name`

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

If this InterfaceTypeDef is associated with a Module, the name of the module. Unset otherwise.

---

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