package guardian

  1. Overview
  2. Docs
val id : 'a t -> Uuid.Actor.t
val owner : 'a t -> Uuid.Actor.t option
val roles : 'a t -> RoleSet.t
val equal : ('a -> 'a -> bool) -> 'a t -> 'a t -> bool
val compare : ('a -> 'a -> int) -> 'a t -> 'a t -> int
val to_yojson : ('a -> Yojson.Safe.t) -> 'a t -> Yojson.Safe.t
val show : 'a t -> string
val pp : Format.formatter -> 'a t -> unit
val make : ?owner:Uuid.Actor.t -> RoleSet.t -> 'a -> Uuid.Actor.t -> 'a t
val a_owns_b : 'a t -> 'b t -> bool
val has_role : 'a t -> ActorRoles.t -> bool
OCaml

Innovation. Community. Security.