// @generated by openehr-codegen (emit-opt) — DO NOT EDIT.
// SPDX-FileCopyrightText: Cadasto B.V.
// SPDX-FileCopyrightText: openEHR Foundation
// SPDX-License-Identifier: Apache-2.0
//! openEHR OPT 1.4 operational-template model + canonical-XML codec.
//!
//! Parse an operational template with [`from_xml`]; the root element is `<template>` (`OPERATIONAL_TEMPLATE`).
/// Parse an operational template XML document into an [`types::OperationalTemplate`].
///
/// # Errors
/// Propagates canonical-XML parse errors, and refuses a root element other
/// than `<template>`.
/// Serialize an [`types::OperationalTemplate`] back to OPT 1.4 XML (root `<template>`,
/// `http://schemas.openehr.org/v1`).
///
/// # Errors
/// Propagates canonical-XML serialization errors.