docx_reader/documents/elements/
table_style.rs

1use serde::{Serialize, Serializer};
2
3#[derive(Debug, Clone, PartialEq)]
4pub struct TableStyle {
5	val: String,
6}
7
8impl TableStyle {
9	pub fn new(val: impl Into<String>) -> TableStyle {
10		TableStyle { val: val.into() }
11	}
12}
13
14impl Serialize for TableStyle {
15	fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
16	where
17		S: Serializer,
18	{
19		serializer.serialize_str(&self.val)
20	}
21}