View Source Permit.Types.ConditionTypes (permit v0.2.1)
Contains types of conditions that can be defined in the application's permission definition module (Permit.Permissions
or e.g. for Ecto Permit.Ecto.Permissions
).
Extensions like Permit.Ecto
will typically provide their own replacements for these types.
Summary
Types
@type boolean_condition() :: boolean()
@type condition() :: boolean_condition() | keyword_equality_condition() | fn1_condition() | fn2_condition()
@type fn1_condition() :: (Permit.Types.object() -> boolean())
@type fn2_condition() :: (Permit.Types.subject(), Permit.Types.object() -> boolean())
@type keyword_equality_condition() :: {Permit.Types.struct_field(), term()}