package guardian

  1. Overview
  2. Docs
type 'a t = {
  1. roles : ActorRoleSet.t;
  2. owner : Uuid.Actor.t option;
  3. uuid : Uuid.Actor.t;
  4. typ : 'a;
}
val equal : 'a. ('a -> 'a -> Ppx_deriving_runtime.bool) -> 'a t -> 'a t -> Ppx_deriving_runtime.bool
val compare : 'a. ('a -> 'a -> Ppx_deriving_runtime.int) -> 'a t -> 'a t -> Ppx_deriving_runtime.int
val to_yojson : 'a. ('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 -> 'b t
val a_owns_b : 'a t -> 'b t -> bool
val has_role : 'a t -> ActorRoleSet.elt -> bool
OCaml

Innovation. Community. Security.