Skip to main content

Module adaptive_card

Module adaptive_card 

Source
Expand description

Adaptive Cards transpiler (Windows Widgets Board). IR → Adaptive Card 1.5 transpiler for Windows Widgets Board.

Pure Rust — runs on any host. Elements Adaptive Cards cannot express natively (canvas, chart, gauge, shape, zstack, gradients) are rasterized to PNG data URIs when the rasterize feature is enabled; otherwise they may be skipped / flattened and recorded in TranspileResult::skipped.

Element conversion is split across the six render groups (layout, text, media, data, interactive, spacing) plus shared token helpers in style, mirroring the Android/Swift renderers.

Structs§

TranspileResult
Result of transpiling one IR root (plus skipped diagnostics).

Functions§

ac_data_key
ac_template_key
Storage keys written next to the config map for the C# provider.
to_adaptive_card
Build an Adaptive Card 1.5 document from a root element.
to_adaptive_card_for_size
Pick a size branch from WidgetConfig and transpile.
validate_card_structure
Structural check (no full JSON Schema dependency).