Public introspection API for resources extending Diffo.Provider.BaseInstance
Summary
Functions
Returns the named characteristic declaration, or nil
Returns the list of characteristic declarations for the resource
Returns the named feature declaration, or nil
Returns the named characteristic within a feature, or nil
Returns the list of feature declarations for the resource
Returns the list of party role declarations for the resource
Returns the party declaration for the given role, or nil
Returns the place declaration for the given role, or nil
Returns the list of place role declarations for the resource
Returns the normalised specification keyword list for the resource
Functions
@spec characteristic(Ash.Resource.t(), atom()) :: struct() | nil
Returns the named characteristic declaration, or nil
@spec characteristics(Ash.Resource.t()) :: list() | []
Returns the list of characteristic declarations for the resource
@spec feature(Ash.Resource.t(), atom()) :: struct() | nil
Returns the named feature declaration, or nil
@spec feature_characteristic(Ash.Resource.t(), atom(), atom()) :: struct() | nil
Returns the named characteristic within a feature, or nil
@spec features(Ash.Resource.t()) :: list() | []
Returns the list of feature declarations for the resource
@spec parties(Ash.Resource.t()) :: list() | []
Returns the list of party role declarations for the resource
@spec party(Ash.Resource.t(), atom()) :: struct() | nil
Returns the party declaration for the given role, or nil
@spec place(Ash.Resource.t(), atom()) :: struct() | nil
Returns the place declaration for the given role, or nil
@spec places(Ash.Resource.t()) :: list() | []
Returns the list of place role declarations for the resource
@spec specification(Ash.Resource.t()) :: keyword() | nil
Returns the normalised specification keyword list for the resource