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

A definition of a field on a custom object defined in a Module.

A field on an object has a static value, as opposed to a function on an object whose value is computed by invoking code (and can accept arguments).

# `t`

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

# `deprecated`

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

The reason this enum member is deprecated, if any.

# `description`

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

A doc string for the field, if any.

# `id`

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

A unique identifier for this FieldTypeDef.

# `name`

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

The name of the field in lowerCamelCase format.

# `source_map`

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

The location of this field declaration.

# `type_def`

```elixir
@spec type_def(t()) :: Dagger.TypeDef.t()
```

The type of the field.

---

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