Permit.Types.ConditionTypes (permit v0.3.0)

View Source

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

boolean_condition()

@type boolean_condition() :: boolean()

condition()

condition_or_conditions()

@type condition_or_conditions() :: condition() | [condition()]

fn1_condition()

@type fn1_condition() :: (Permit.Types.object() -> boolean())

fn2_condition()

@type fn2_condition() :: (Permit.Types.subject(), Permit.Types.object() -> boolean())

keyword_equality_condition()

@type keyword_equality_condition() :: {Permit.Types.struct_field(), term()}