View Source AshPaperTrail.Resource.Info (ash_paper_trail v0.3.1)

Introspection helpers for AshPaperTrail.Resource

Summary

Functions

attributes_as_attributes(resource)

@spec attributes_as_attributes(Spark.Dsl.t() | Ash.Resource.t()) :: [atom()]

belongs_to_actor(resource)

@spec belongs_to_actor(Spark.Dsl.t() | Ash.Resource.t()) :: [atom()]

change_tracking_mode(resource)

@spec change_tracking_mode(Spark.Dsl.t() | Ash.Resource.t()) :: atom()

ignore_actions(resource)

@spec ignore_actions(Spark.Dsl.t() | Ash.Resource.t()) :: [atom()]

ignore_attributes(resource)

@spec ignore_attributes(Spark.Dsl.t() | Ash.Resource.t()) :: [atom()]

mixin(resource)

@spec mixin(Spark.Dsl.t() | Ash.Resource.t()) ::
  {module(), atom(), list()} | module() | nil

on_actions(resource)

@spec on_actions(Spark.Dsl.t() | Ash.Resource.t()) :: [atom()]

primary_key_type(resource)

@spec primary_key_type(Spark.Dsl.t() | Ash.Resource.t()) :: atom()

reference_source?(resource)

@spec reference_source?(Spark.Dsl.t() | Ash.Resource.t()) :: boolean()

relationship_opts(resource)

@spec relationship_opts(Spark.Dsl.t() | Ash.Resource.t()) :: Keyword.t()

resource_identifier(resource)

@spec resource_identifier(Spark.Dsl.t() | Ash.Resource.t()) :: atom()

sensitive_attributes(resource)

@spec sensitive_attributes(Spark.Dsl.t() | Ash.Resource.t()) ::
  :display | :ignore | :redact

store_action_inputs?(resource)

@spec store_action_inputs?(Spark.Dsl.t() | Ash.Resource.t()) :: boolean()

store_action_name?(resource)

@spec store_action_name?(Spark.Dsl.t() | Ash.Resource.t()) :: boolean()

store_resource_identifier?(resource)

@spec store_resource_identifier?(Spark.Dsl.t() | Ash.Resource.t()) :: boolean()

version_extensions(resource)

@spec version_extensions(Spark.Dsl.t() | Ash.Resource.t()) :: Keyword.t()

version_resource(resource)

@spec version_resource(Spark.Dsl.t() | Ash.Resource.t()) :: Ash.Resource.t()