View Source GoogleApi.PageSpeedOnline.V2.Model.PagespeedApiImageV2 (google_api_page_speed_online v0.16.1)

Attributes

  • data (type: String.t, default: nil) - Image data base64 encoded.
  • height (type: integer(), default: nil) - Height of screenshot in pixels.
  • key (type: String.t, default: nil) - Unique string key, if any, identifying this image.
  • mime_type (type: String.t, default: nil) - Mime type of image data (e.g. "image/jpeg").
  • page_rect (type: GoogleApi.PageSpeedOnline.V2.Model.PagespeedApiImageV2PageRect.t, default: nil) - The region of the page that is captured by this image, with dimensions measured in CSS pixels.
  • width (type: integer(), default: nil) - Width of screenshot in pixels.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.PageSpeedOnline.V2.Model.PagespeedApiImageV2{
  data: String.t(),
  height: integer(),
  key: String.t(),
  mime_type: String.t(),
  page_rect: GoogleApi.PageSpeedOnline.V2.Model.PagespeedApiImageV2PageRect.t(),
  width: integer()
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.