docx_reader/documents/elements/
doc_var.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
pub struct DocVar {
	name: String,
	val: String,
}

impl DocVar {
	pub fn new(name: impl Into<String>, val: impl Into<String>) -> DocVar {
		DocVar {
			name: name.into(),
			val: val.into(),
		}
	}
}