NotLoaded v0.2.1 NotLoaded View Source
Struct returned by fields when they have not been loaded.
Example
defmodule Book do
import NotLoaded, only: [lazy_loaded: 1]
defstruct [
:title,
lazy_loaded(:author)
]
end
Link to this section Summary
Link to this section Types
Link to this section Functions
Defaults a struct field to NotLoaded
.
Creates a new NotLoaded
struct for a given field name.