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

A definition of a custom scalar defined in a Module.

# `t`

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

# `description`

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

A doc string for the scalar, if any.

# `id`

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

A unique identifier for this ScalarTypeDef.

# `name`

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

The name of the scalar.

# `source_module_name`

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

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

---

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