gleetube/model/common

Types

Localized text in a specific language.

pub type Localized {
  Localized(
    title: option.Option(String),
    description: option.Option(String),
  )
}

Constructors

Pagination info returned in list responses.

pub type PageInfo {
  PageInfo(total_results: Int, results_per_page: Int)
}

Constructors

  • PageInfo(total_results: Int, results_per_page: Int)

Embedded player information.

pub type Player {
  Player(
    embed_html: option.Option(String),
    embed_height: option.Option(Int),
    embed_width: option.Option(Int),
  )
}

Constructors

Resource identifier used across multiple YouTube API resources.

pub type ResourceId {
  ResourceId(
    kind: option.Option(String),
    video_id: option.Option(String),
    channel_id: option.Option(String),
    playlist_id: option.Option(String),
  )
}

Constructors

Thumbnail image at a specific resolution.

pub type Thumbnail {
  Thumbnail(
    url: String,
    width: option.Option(Int),
    height: option.Option(Int),
  )
}

Constructors

Set of thumbnails at different resolutions.

pub type Thumbnails {
  Thumbnails(
    default: option.Option(Thumbnail),
    medium: option.Option(Thumbnail),
    high: option.Option(Thumbnail),
    standard: option.Option(Thumbnail),
    maxres: option.Option(Thumbnail),
  )
}

Constructors

Search Document