ArchAstro. Types. MediaVariant
(archastro v0.2.0)
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
@type t() :: %ArchAstro.Types.MediaVariant{ content_type: String.t() | ArchAstro.Unset.t(), created_at: DateTime.t() | ArchAstro.Unset.t(), file: String.t() | ArchAstro.Unset.t(), filename: String.t() | ArchAstro.Unset.t(), height: integer() | ArchAstro.Unset.t(), id: String.t(), image_source: ArchAstro.Types.ImageSource.t() | ArchAstro.Unset.t(), updated_at: DateTime.t() | ArchAstro.Unset.t(), url: String.t() | ArchAstro.Unset.t(), variant_key: String.t() | ArchAstro.Unset.t(), width: integer() | ArchAstro.Unset.t() }
Functions
@spec from_map(ArchAstro.JSON.object()) :: t()
@spec matches?(ArchAstro.JSON.t()) :: boolean()
@spec to_map(t()) :: ArchAstro.JSON.object()