pub fn decode_document_with_mode( src: &str, mode: ParseMode, ) -> Result<Document, DecodeError>
Decode with explicit mode selection.