docx_rust/document/sym.rs
1use std::borrow::Cow;
2
3use hard_xml::{XmlRead, XmlWrite};
4
5/// Symbol Character
6#[derive(Debug, Default, XmlRead, XmlWrite, Clone)]
7#[cfg_attr(test, derive(PartialEq))]
8#[xml(tag = "w:sym")]
9pub struct Sym<'a> {
10 #[xml(attr = "w:font")]
11 pub font: Option<Cow<'a, str>>,
12 #[xml(attr = "w:char")]
13 pub char: Option<Cow<'a, str>>,
14}