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
Source§impl<'__input: 'a, 'a> XmlRead<'__input> for TableProperty<'a>
impl<'__input: 'a, 'a> XmlRead<'__input> for TableProperty<'a>
Auto Trait Implementations§
impl<'a> Freeze for TableProperty<'a>
impl<'a> RefUnwindSafe for TableProperty<'a>
impl<'a> Send for TableProperty<'a>
impl<'a> Sync for TableProperty<'a>
impl<'a> Unpin for TableProperty<'a>
impl<'a> UnwindSafe for TableProperty<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more