docx_reader/documents/elements/doc_var.rs
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(),
}
}
}