mirror of
https://github.com/ash-project/ash.git
synced 2024-09-20 21:43:02 +12:00
17 lines
422 B
Elixir
17 lines
422 B
Elixir
defmodule Ash.NotLoaded do
|
|
@moduledoc "Used when an aggregate or relationship hasn't been loaded."
|
|
defstruct [:field, :type]
|
|
|
|
@type t :: %__MODULE__{
|
|
field: atom,
|
|
type: :relationship | :calculation | :aggregate
|
|
}
|
|
|
|
defimpl Inspect do
|
|
import Inspect.Algebra
|
|
|
|
def inspect(not_loaded, opts) do
|
|
concat(["#Ash.NotLoaded<", to_doc(not_loaded.type, opts), ">"])
|
|
end
|
|
end
|
|
end
|