docx-rust 0.1.11

A Rust library for parsing and generating docx files.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::borrow::Cow;

use hard_xml::{XmlRead, XmlWrite};

/// Symbol Character
#[derive(Debug, Default, XmlRead, XmlWrite, Clone)]
#[cfg_attr(test, derive(PartialEq))]
#[xml(tag = "w:sym")]
pub struct Sym<'a> {
    #[xml(attr = "w:font")]
    pub font: Option<Cow<'a, str>>,
    #[xml(attr = "w:char")]
    pub char: Option<Cow<'a, str>>,
}