package sihl-type

  1. Overview
  2. Docs
exception Exception of string
module Status : sig ... end
type t = {
  1. id : string;
  2. value : string;
  3. data : string option;
  4. kind : string;
  5. status : Status.t;
  6. expires_at : Ptime.t;
  7. created_at : Ptime.t;
}
val created_at : t -> Ptime.t
val expires_at : t -> Ptime.t
val status : t -> Status.t
val kind : t -> string
val data : t -> string option
val value : t -> string
val id : t -> string
module Fields : sig ... end
val pp : Ppx_deriving_runtime.Format.formatter -> t -> Ppx_deriving_runtime.unit
val equal : t -> t -> Ppx_deriving_runtime.bool
val make : id:string -> value:string -> data:string option -> kind:string -> status:Status.t -> expires_at:Ptime.t -> created_at:Ptime.t -> t
val invalidate : t -> t
val is_valid : t -> bool
val alco : t Alcotest.testable
val t : t Caqti_type.t
OCaml

Innovation. Community. Security.