Module Permissions.Behavior

Behaviors determine how permission requests are handled.

type t =
  1. | Allow
    (*

    Allow the operation

    *)
  2. | Deny
    (*

    Deny the operation

    *)
  3. | Ask
    (*

    Ask the user for permission

    *)

The type of permission behaviors.

val jsont : t Jsont.t

jsont is the Jsont codec for permission behaviors. Wire format uses lowercase: "allow", "deny", "ask".

val to_string : t -> string

to_string t converts a behavior to its wire format string representation.

val of_string : string -> t

of_string s parses a behavior from its wire format string representation.