View Source GoogleApi.People.V1.Model.Photo (google_api_people v0.41.0)

A person's photo. A picture shown next to the person's name to help others recognize the person.

Attributes

  • default (type: boolean(), default: nil) - True if the photo is a default photo; false if the photo is a user-provided photo.
  • metadata (type: GoogleApi.People.V1.Model.FieldMetadata.t, default: nil) - Metadata about the photo.
  • url (type: String.t, default: nil) - The URL of the photo. You can change the desired size by appending a query parameter sz={size} at the end of the url, where {size} is the size in pixels. Example: https://lh3.googleusercontent.com/-T_wVWLlmg7w/AAAAAAAAAAI/AAAAAAAABa8/00gzXvDBYqw/s100/photo.jpg?sz=50

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.People.V1.Model.Photo{
  default: boolean() | nil,
  metadata: GoogleApi.People.V1.Model.FieldMetadata.t() | nil,
  url: String.t() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.