AshBackendDrivenOptimisticUi. NotOptimistic
(AshBackendDrivenOptimisticUi v0.1.0)
Copy Markdown
View Source
Says an action deliberately has no optimistic rule, and why.
not_optimistic :create_from_image, because: :ai_resultThe reason is one of reasons/0:
:ai_result- an AI or external service decides the answer.:server_decides- random, server-computed, or depends on other users.:background- telemetry, sync, fire-and-forget.:admin- admin, dev, rare settings, auth.:not_yet- should be optimistic, not converted yet.
Nothing is shipped to the client; tooling reads it with
AshBackendDrivenOptimisticUi.Info.not_optimistic/1.
Summary
Types
@type t() :: %AshBackendDrivenOptimisticUi.NotOptimistic{ __identifier__: atom() | nil, __spark_metadata__: Spark.Dsl.Entity.spark_meta(), action: atom(), because: atom() }
Functions
@spec reasons() :: [atom()]
The accepted because: values.