Deterministic consent, deduplication, rate and quiet-hours policy.
Summary
Functions
Builds a validated policy from a struct, map, keyword list or nil.
Validates the policy's flags, limits, quiet hours, offset, mode and portability.
Types
Functions
Builds a validated policy from a struct, map, keyword list or nil.
nil yields the default policy. Raises ArgumentError when the resulting
policy is invalid.
Validates the policy's flags, limits, quiet hours, offset, mode and portability.
Returns :ok, or {:error, reason} naming the first invalid field.