package guardian

  1. Overview
  2. Docs
type t =
  1. | Create
  2. | Read
  3. | Update
  4. | Delete
  5. | Manage
val equal : t -> t -> bool
val compare : t -> t -> int
val pp : Format.formatter -> t -> unit
val show : t -> string
val to_yojson : t -> Yojson.Safe.t
val of_string : string -> t
val is_valid : matches:t -> t -> bool

is_valid checks the validity of the provided action t against action matches or action Manage

OCaml

Innovation. Community. Security.