Cite.Passage (Cite v0.1.0)

Copy Markdown View Source

One unit of a Cite.Source: the caller's id, exact text, and meta.

A citation is a passage, unchanged. Built by Cite.source/2; read it, don't build it.

meta is kept as given. Encoding a passage, or a report, with Jason needs every value in it to be encodable; a tuple or a pid is not.

Summary

Types

t()

@type t() :: %Cite.Passage{id: String.t(), meta: map(), text: String.t()}