docx_reader/documents/elements/
table_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(Debug, Clone, PartialEq, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct TableWidth {
	width: usize,
	width_type: WidthType,
}

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