Skip to main content

Module generated

Module generated 

Source
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§

BoardOptions
How a fen/pgn board is drawn — the same knobs the markdown fences and tags take as attributes. Every field is optional on the wire.
GeneratedAsset
One generated file: path is where the template finds it, the flattened spec is what it contains.

Enums§

BoardTheme
Board square colours.
GeneratedSpec
What to generate. Non-exhaustive: new kinds arrive as new variants, and super::CapabilitiesResponse::generators says 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.
QrEcLevel
QR error-correction level. M is the default, and what SPAYD (“QR platba”) recommends.