docx_reader/documents/
custom_item_rels.rs

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

#[derive(Debug, Clone, PartialEq, Serialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct CustomItemRels {
	custom_item_count: usize,
}

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

	pub fn add_item(mut self) -> Self {
		self.custom_item_count += 1;
		self
	}
}