google_youtube_api_v3/youtube/video_content_details

DO NOT CHANGE, THIS IS AN AUTO GENERATED FILE FROM generate.gleam

Types

The value of captions indicates whether the video has captions or not.

pub type Caption {
  CaptionTrue
  CaptionFalse
}

Constructors

  • CaptionTrue
  • CaptionFalse

The value of definition indicates whether the video is available in high definition or only in standard definition.

pub type Definition {
  DefinitionSd
  DefinitionHd
}

Constructors

  • DefinitionSd
  • DefinitionHd

Specifies the projection format of the video.

pub type Projection {
  ProjectionRectangular
  ProjectionValue360
}

Constructors

  • ProjectionRectangular
  • ProjectionValue360

Details about the content of a YouTube Video.

pub type VideoContentDetails {
  VideoContentDetails(
    caption: option.Option(Caption),
    content_rating: option.Option(content_rating.ContentRating),
    country_restriction: option.Option(access_policy.AccessPolicy),
    definition: option.Option(Definition),
    dimension: option.Option(String),
    duration: option.Option(String),
    has_custom_thumbnail: option.Option(Bool),
    licensed_content: option.Option(Bool),
    projection: option.Option(Projection),
    region_restriction: option.Option(
      video_content_details_region_restriction.VideoContentDetailsRegionRestriction,
    ),
  )
}

Constructors

Values

pub fn caption_decoder() -> decode.Decoder(Caption)
pub fn caption_to_string(value: Caption) -> String
pub fn definition_decoder() -> decode.Decoder(Definition)
pub fn definition_to_string(value: Definition) -> String
pub fn projection_decoder() -> decode.Decoder(Projection)
pub fn projection_to_string(value: Projection) -> String
✨ Search Document