docx_reader/documents/elements/table_style.rs
use serde::{Serialize, Serializer};
#[derive(Debug, Clone, PartialEq)]
pub struct TableStyle {
val: String,
}
impl TableStyle {
pub fn new(val: impl Into<String>) -> TableStyle {
TableStyle { val: val.into() }
}
}
impl Serialize for TableStyle {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
S: Serializer,
{
serializer.serialize_str(&self.val)
}
}