ArchAstro.Types.ImageSource (archastro v0.2.0)

Copy Markdown

Resolved metadata for an image, including its delivery URL, dimensions, and optional references to the underlying storage file or media record.

Summary

Types

t()

@type t() :: %ArchAstro.Types.ImageSource{
  file: String.t() | ArchAstro.Unset.t(),
  height: integer() | ArchAstro.Unset.t(),
  media: String.t() | ArchAstro.Unset.t(),
  mime_type: String.t() | ArchAstro.Unset.t(),
  refresh_url: String.t() | ArchAstro.Unset.t(),
  url: String.t() | ArchAstro.Unset.t(),
  width: integer() | ArchAstro.Unset.t()
}

Functions

from_map(data)

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

matches?(value)

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

to_map(value)

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