package guardian

  1. Overview
  2. Docs
type !'a t = 'a Guardian.Make(A)(T).Authorizable.t = {
  1. roles : ActorRoleSet.t;
  2. owner : Uuid.Actor.t option;
  3. uuid : Uuid.Actor.t;
  4. typ : 'a;
}
val equal : ('a -> 'a -> Ppx_deriving_runtime.bool) -> 'a t -> 'a t -> Ppx_deriving_runtime.bool
val compare : ('a -> 'a -> Ppx_deriving_runtime.int) -> 'a t -> 'a t -> Ppx_deriving_runtime.int
val pp : (Ppx_deriving_runtime.Format.formatter -> 'a -> Ppx_deriving_runtime.unit) -> Ppx_deriving_runtime.Format.formatter -> 'a t -> Ppx_deriving_runtime.unit
val show : (Ppx_deriving_runtime.Format.formatter -> 'a -> Ppx_deriving_runtime.unit) -> 'a t -> Ppx_deriving_runtime.string
val to_yojson : ('a -> Yojson.Safe.t) -> 'a t -> Yojson.Safe.t
val to_string : 'a t -> Ppx_deriving_runtime.string
val make : ?owner:Uuid.Actor.t -> ActorRoleSet.t -> 'a -> Uuid.Actor.t -> 'a t
val a_owns_b : 'a t -> 'b t -> bool
val has_role : 'a t -> ActorRoleSet.elt -> bool
OCaml

Innovation. Community. Security.