docx_reader/documents/elements/table_cell_width.rs
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 }
}
}