package fred

  1. Overview
  2. Docs
type categories = {
  1. categories : category list;
}

Container for categories data

and category = {
  1. id : int;
  2. name : string;
  3. parent_id : int;
}
val categories_of_yojson : Yojson.Safe.t -> categories Ppx_deriving_yojson_runtime.error_or
val category_of_yojson : Yojson.Safe.t -> category Ppx_deriving_yojson_runtime.error_or
val pp_categories : Ppx_deriving_runtime.Format.formatter -> categories -> Ppx_deriving_runtime.unit
val show_categories : categories -> Ppx_deriving_runtime.string
val pp_category : Ppx_deriving_runtime.Format.formatter -> category -> Ppx_deriving_runtime.unit
val show_category : category -> Ppx_deriving_runtime.string
OCaml

Innovation. Community. Security.