docx-reader 0.1.1

A .docx file reader in rust
Documentation
use serde::Serialize;

#[derive(Serialize, Debug, Clone, PartialEq, Default)]
pub struct DataBinding {
	pub xpath: Option<String>,
	pub prefix_mappings: Option<String>,
	pub store_item_id: Option<String>,
}

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

	pub fn xpath(mut self, xpath: impl Into<String>) -> Self {
		self.xpath = Some(xpath.into());
		self
	}

	pub fn prefix_mappings(mut self, m: impl Into<String>) -> Self {
		self.prefix_mappings = Some(m.into());
		self
	}

	pub fn store_item_id(mut self, id: impl Into<String>) -> Self {
		self.store_item_id = Some(id.into());
		self
	}
}