docx_reader/documents/elements/table_width.rs
1use serde::Serialize;
2
3use crate::types::*;
4
5#[derive(Debug, Clone, PartialEq, Serialize)]
6#[serde(rename_all = "camelCase")]
7pub struct TableWidth {
8 width: usize,
9 width_type: WidthType,
10}
11
12impl TableWidth {
13 pub fn new(width: usize, width_type: WidthType) -> TableWidth {
14 TableWidth { width, width_type }
15 }
16}