View Source Ash.ActionInput (ash v2.11.8)
Input for a custom action
Link to this section Summary
Functions
Adds an error to the input errors list, and marks the input as valid?: false
Creates a new input for a generic action
Set an argument value
Deep merges the provided map into the input context that can be used later
Link to this section Types
@type t() :: %Ash.ActionInput{ action: Ash.Resource.Actions.Action.t(), api: Ash.Api.t(), arguments: map(), context: map(), errors: term(), params: map(), resource: Ash.Resource.t(), valid?: boolean() }
Link to this section Functions
Adds an error to the input errors list, and marks the input as valid?: false
@spec for_action( resource_or_input :: Ash.Resource.t() | t(), action :: atom(), params :: map(), opts :: Keyword.t() ) :: t()
Creates a new input for a generic action
Set an argument value
Deep merges the provided map into the input context that can be used later
Do not use the private
key in your custom context, as that is reserved for internal use.