Skip to main content

Module kinds

Module kinds 

Source

Structs§

Coord
Geographic coordinate (latitude/longitude in decimal degrees). Zinc: C(37.55,-77.45)
HDateTime
Timezone-aware datetime with Haystack city-based timezone name.
HRef
Haystack Ref — an entity reference.
Marker
Marker tag — boolean presence indicator. In Zinc: M. In JSON: {"_kind": "marker"}.
NA
Not Available — missing or invalid data sentinel. In Zinc: NA. In JSON: {"_kind": "na"}.
Number
Haystack Number — a 64-bit float with optional unit string.
Remove
Remove — tag removal in diff/update operations. In Zinc: R. In JSON: {"_kind": "remove"}.
Symbol
Reference to a def/tag definition name. Zinc: ^hot-water
Unit
A Haystack unit definition.
Uri
Universal Resource Identifier. Zinc: `http://example.com`
XStr
Extended typed string — vendor-specific scalar. Zinc: Color("red")

Enums§

Kind
The central Haystack value type. Every tag value is a Kind.

Functions§

tz_for
Resolve a Haystack timezone name to an IANA identifier.
tz_map
Get the full timezone map.
unit_for
Look up a unit by name or symbol.
units_by_name
Get all units indexed by name.
units_by_symbol
Get all units indexed by symbol.