package gapi-ocaml

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
module UrlBlocks : sig ... end
type t = {
  1. localizedRuleName : string;
    (*

    Localized name of the rule, intended for presentation to a user.

    *)
  2. ruleImpact : float;
    (*

    The impact (unbounded floating point value) that implementing the suggestions for this rule would have on making the page faster. Impact is comparable between rules to determine which rule's suggestions would have a higher or lower impact on making a page faster. For instance, if enabling compression would save 1MB, while optimizing images would save 500kB, the enable compression rule would have 2x the impact of the image optimization rule, all other things being equal.

    *)
  3. urlBlocks : UrlBlocks.t list;
    (*

    List of blocks of URLs. Each block may contain a heading and a list of URLs. Each URL may optionally include additional details.

    *)
}
val localizedRuleName : (t, string) GapiLens.t
val ruleImpact : (t, float) GapiLens.t
val urlBlocks : (t, UrlBlocks.t list) GapiLens.t
val empty : t
val render : t -> GapiJson.json_data_model list
val parse : t -> GapiJson.json_data_model -> t