docx_reader/documents/elements/
a_graphic.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use super::*;
use serde::Serialize;

#[derive(Debug, Clone, Serialize, PartialEq, Default)]
#[serde(rename_all = "camelCase")]
pub struct AGraphic {
	pub children: Vec<AGraphicData>,
}

impl AGraphic {
	pub fn new() -> AGraphic {
		Default::default()
	}

	pub fn add_graphic_data(mut self, g: AGraphicData) -> Self {
		self.children.push(g);
		self
	}
}