package guardian

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Guard.PermissionSource

Sourcetype t =
  1. | Create
  2. | Read
  3. | Update
  4. | Delete
  5. | Manage
Sourceval equal : t -> t -> bool
Sourceval compare : t -> t -> int
Sourceval pp : Format.formatter -> t -> unit
Sourceval show : t -> string
Sourceval to_yojson : t -> Yojson.Safe.t
Sourceval of_string : string -> t option
Sourceval of_string_exn : string -> t
Sourceval of_string_res : string -> (t, string) result
Sourceval sexp_of_t : t -> Sexplib0.Sexp.t
Sourceval is_valid : required:t -> t -> bool

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