Skip to main content

fragment_from_wit

Function fragment_from_wit 

Source
pub fn fragment_from_wit(plugin: &str, f: Fragment) -> DashboardFragment
Expand description

Convert a guest fragment to the native one, dropping what does not survive validation.

plugin is for the log lines only. Rejections are debug! rather than warn!: this runs once per section per compose, and a plugin with a systematically bad row would otherwise write a line every time the user opens the dashboard.