pub fn serialize( document: &Document, format: OapFormat, ) -> Result<String, ApplyError>
Serializes an OAP document as YAML, JSON, or Markdown.