docx_reader/documents/elements/
table_cell_width.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use serde::Serialize;

use crate::types::*;

#[derive(Serialize, Debug, Clone, PartialEq)]
#[serde(rename_all = "camelCase")]
pub struct TableCellWidth {
	width: usize,
	width_type: WidthType,
}

impl TableCellWidth {
	pub fn new(width: usize, width_type: WidthType) -> TableCellWidth {
		TableCellWidth { width, width_type }
	}
}