docx_reader/documents/elements/a_graphic.rs
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
}
}