ArchAstro.SDK.Types.MediaVariant (archastro v0.3.2)

Copy Markdown

A processed variant of a media item, such as the original upload or a resized thumbnail, including a signed download URL resolved at request time.

Summary

Types

t()

@type t() :: %ArchAstro.SDK.Types.MediaVariant{
  content_type: String.t() | ArchAstro.SDK.Unset.t(),
  created_at: DateTime.t() | ArchAstro.SDK.Unset.t(),
  file: String.t() | ArchAstro.SDK.Unset.t(),
  filename: String.t() | ArchAstro.SDK.Unset.t(),
  height: integer() | ArchAstro.SDK.Unset.t(),
  id: String.t(),
  image_source: ArchAstro.SDK.Types.ImageSource.t() | ArchAstro.SDK.Unset.t(),
  updated_at: DateTime.t() | ArchAstro.SDK.Unset.t(),
  url: String.t() | ArchAstro.SDK.Unset.t(),
  variant_key: String.t() | ArchAstro.SDK.Unset.t(),
  width: integer() | ArchAstro.SDK.Unset.t()
}

Functions

from_map(data)

@spec from_map(ArchAstro.SDK.JSON.object()) :: t()

matches?(value)

@spec matches?(ArchAstro.SDK.JSON.t()) :: boolean()

to_map(value)

@spec to_map(t()) :: ArchAstro.SDK.JSON.object()