package gapi-ocaml

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module FormattedResults.RuleResultsSource

Sourcemodule UrlBlocks : sig ... end
Sourcetype 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.

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