Kreuzberg.EpubMetadata (kreuzberg v4.9.5)

Copy Markdown View Source

EPUB metadata (Dublin Core extensions).

Matches the Rust EpubMetadata struct.

Fields

  • :coverage - Geographic/temporal coverage
  • :dc_format - Dublin Core format
  • :relation - Related resource
  • :source - Source resource
  • :dc_type - Dublin Core type
  • :cover_image - Cover image path

Summary

Types

t()

@type t() :: %Kreuzberg.EpubMetadata{
  cover_image: String.t() | nil,
  coverage: String.t() | nil,
  dc_format: String.t() | nil,
  dc_type: String.t() | nil,
  relation: String.t() | nil,
  source: String.t() | nil
}

Functions

from_map(data)

@spec from_map(map()) :: t()

to_map(meta)

@spec to_map(t()) :: map()