Expand description
Server-side generated images — QR codes and chess boards — that a template render asks for by content instead of uploading as a blob.
A GeneratedAsset names the virtual path the template references
(#image("qr.svg")) and a GeneratedSpec saying what to draw there. The
server renders it with the same code the markdown pre-step uses (qr,
fen and pgn fences and tags), so a caller needs no QR or chess library
of its own.
Structs§
- Board
Options - How a
fen/pgnboard is drawn — the same knobs the markdown fences and tags take as attributes. Every field is optional on the wire. - Generated
Asset - One generated file:
pathis where the template finds it, the flattenedspecis what it contains.
Enums§
- Board
Theme - Board square colours.
- Generated
Spec - What to generate. Non-exhaustive: new kinds arrive as new variants, and
super::CapabilitiesResponse::generatorssays which ones a server has. - Generator
- The generator kinds a server can render — the values of
super::CapabilitiesResponse::generators. Each known variant is also the markdown fence/tag name it answers to. - QrEc
Level - QR error-correction level.
Mis the default, and what SPAYD (“QR platba”) recommends.