Skip to main content

serialize

Function serialize 

Source
pub fn serialize(message: &Message<'_>) -> Result<String, Error>
Expand description

Serializes message as canonical MF2 source.

Fails if MF2 syntax cannot represent the model: U+0000 in text or a literal, an invalid name, an input declaration whose name differs from its variable, or a select message without selectors, variants or keys.