pub enum Error {
Xml(Error),
InvalidFieldId(String),
}Expand description
Errors that can occur while reading or writing DrawingML content.
Deliberately small: unlike word-ooxml/excel-ooxml, this crate never
touches an OPC package or a relationship (no opc::Error variant), and
has no part-resolution failure modes of its own yet (no MissingXxxPart
variants) — it only ever reads/writes XML fragments handed to it by a
future host crate.
Variants§
Xml(Error)
An error occurred while reading or writing XML.
InvalidFieldId(String)
A TextRun::Field’s id is not a
valid ST_Guid. ECMA-376’s CT_TextField (the type behind
<a:fld id="..." type="...">) requires id to be a GUID in
{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX} form (uppercase hex) —
confirmed against the ISO/IEC 29500-4 dml-main.xsd schema. A
non-GUID id writes schema-invalid XML that PowerPoint refuses to
open without repairing (and, per observed behavior, can blank out
unrelated slides in the same package during that repair).
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()