# `Spectre.Operation.Result`
[🔗](https://github.com/elchemista/spectre/blob/0.4.0/lib/spectre/operation/result.ex#L1)

Correlated terminal result of exactly one operational attempt.

# `t`

```elixir
@type t() :: %Spectre.Operation.Result{
  artifacts: [term()],
  attempt_id: String.t(),
  context_revision: non_neg_integer(),
  control_generation: non_neg_integer(),
  epoch: String.t(),
  error: term(),
  fencing_token: String.t(),
  finished_at: non_neg_integer(),
  id: String.t(),
  loop_id: String.t(),
  metadata: map(),
  operation: atom() | String.t(),
  receipt: term(),
  status: :ok | :error | :ambiguous,
  trigger_generation: non_neg_integer(),
  usage: map(),
  value: term()
}
```

# `new`

```elixir
@spec new(Spectre.Operation.Attempt.t(), :ok | :error | :ambiguous, term(), keyword()) ::
  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*
