# `Spectre.Operation.Ref`
[🔗](https://github.com/elchemista/spectre/blob/0.3.0/lib/spectre/operation/ref.ex#L1)

Stable, portable reference to a Work, Vigil or external controller loop.

# `t`

```elixir
@type t() :: %Spectre.Operation.Ref{
  controller: module() | nil,
  correlation_id: String.t() | nil,
  id: String.t(),
  kind: :work | :vigil | :directive,
  subject_id: String.t()
}
```

# `from_loop`

```elixir
@spec from_loop(Spectre.Operation.Loop.t()) :: t()
```

# `validate`

```elixir
@spec validate(t()) :: :ok | {:error, term()}
```

# `validate!`

```elixir
@spec validate!(t()) :: t()
```

---

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