ASDF.Tagged (asdf v0.1.0)

Copy Markdown View Source

A YAML node whose tag this library did not turn into another struct.

tag is the expanded tag URI as a binary. value is the node's content: a map, a list, a scalar, or a nested struct the reader already built. Nothing in this struct names a module. A registered ASDF.Registry.Handler can replace the node when the file is read.

Examples

iex> %ASDF.Tagged{tag: "tag:example:note-1.0.0", value: %{"text" => "hi"}}.tag
"tag:example:note-1.0.0"

Summary

Types

t()

One tagged node.

Types

t()

@type t() :: %ASDF.Tagged{tag: String.t(), value: term()}

One tagged node.

  • :tag — expanded URI, for example tag:stsci.edu:asdf/core/asdf-1.1.0
  • :value — the node's content