# `AshBackendDrivenOptimisticUi.Effect.Set`
[🔗](https://github.com/Undeadlol1/ash_backend_driven_optimistic_ui/blob/v0.1.0/lib/ash_backend_driven_optimistic_ui/effect/set.ex#L1)

Sets one of the declaring resource's own attributes to the value of an
expression. `derived?` marks a set read from the action's own changes
rather than written in the `optimistic_ui` block. `from` is the change
module it was read from, when it came from one.

# `t`

```elixir
@type t() :: %AshBackendDrivenOptimisticUi.Effect.Set{
  __spark_metadata__: Spark.Dsl.Entity.spark_meta(),
  attribute: atom(),
  derived?: boolean(),
  from: module() | nil,
  value: term()
}
```

---

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