# `AshBackendDrivenOptimisticUi.Rule`
[🔗](https://github.com/Undeadlol1/ash_backend_driven_optimistic_ui/blob/v0.1.0/lib/ash_backend_driven_optimistic_ui/rule.ex#L1)

What the client may show the moment it calls `action`, before the server
answers. Derived sets come first in `effects`, then the declared ones in
order.

# `t`

```elixir
@type t() :: %AshBackendDrivenOptimisticUi.Rule{
  __identifier__: atom() | nil,
  __spark_metadata__: Spark.Dsl.Entity.spark_meta(),
  action: atom(),
  effects: [AshBackendDrivenOptimisticUi.Effect.t()]
}
```

---

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