docx_reader/documents/elements/
table_cell_width.rs

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