Struct docx_rust::formatting::TableProperty
source · pub struct TableProperty<'a> {
pub style_id: Option<TableStyleId<'a>>,
pub width: Option<TableWidth>,
pub justification: Option<TableJustification>,
pub indent: Option<TableIndent>,
pub borders: Option<TableBorders<'a>>,
pub margins: Option<TableMargins<'a>>,
}
Expand description
Table Property
use docx_rust::formatting::*;
let prop = TableProperty::default()
.style_id("foo")
.justification(TableJustificationVal::Start)
.indent((50, TableIndentUnit::Pct))
.width((50, TableWidthUnit::Pct));
Fields§
§style_id: Option<TableStyleId<'a>>
§width: Option<TableWidth>
§justification: Option<TableJustification>
§indent: Option<TableIndent>
§borders: Option<TableBorders<'a>>
§margins: Option<TableMargins<'a>>
Implementations§
source§impl<'a> TableProperty<'a>
impl<'a> TableProperty<'a>
pub fn style_id<T: Into<TableStyleId<'a>>>(self, value: T) -> Self
pub fn justification<T: Into<TableJustification>>(self, value: T) -> Self
pub fn borders<T: Into<TableBorders<'a>>>(self, value: T) -> Self
pub fn indent<T: Into<TableIndent>>(self, value: T) -> Self
pub fn width<T: Into<TableWidth>>(self, value: T) -> Self
Trait Implementations§
source§impl<'a> Clone for TableProperty<'a>
impl<'a> Clone for TableProperty<'a>
source§fn clone(&self) -> TableProperty<'a>
fn clone(&self) -> TableProperty<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for TableProperty<'a>
impl<'a> Debug for TableProperty<'a>
source§impl<'a> Default for TableProperty<'a>
impl<'a> Default for TableProperty<'a>
source§fn default() -> TableProperty<'a>
fn default() -> TableProperty<'a>
Returns the “default value” for a type. Read more