Struct docx_rust::formatting::TableProperty
source · [−]pub struct TableProperty<'a> {
pub style_id: Option<TableStyleId<'a>>,
pub justification: Option<TableJustification>,
pub borders: Option<TableBorders<'a>>,
pub indent: Option<TableIndent>,
pub margins: Option<TableMargins<'a>>,
pub width: Option<TableWidth>,
}
Expand description
Table Property
use docx::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>>
justification: Option<TableJustification>
borders: Option<TableBorders<'a>>
indent: Option<TableIndent>
margins: Option<TableMargins<'a>>
width: Option<TableWidth>
Implementations
sourceimpl<'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
sourceimpl<'a> Clone for TableProperty<'a>
impl<'a> Clone for TableProperty<'a>
sourcefn clone(&self) -> TableProperty<'a>
fn clone(&self) -> TableProperty<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a> Debug for TableProperty<'a>
impl<'a> Debug for TableProperty<'a>
sourceimpl<'a> Default for TableProperty<'a>
impl<'a> Default for TableProperty<'a>
sourcefn default() -> TableProperty<'a>
fn default() -> TableProperty<'a>
Returns the “default value” for a type. Read more
sourceimpl<'__input: 'a, 'a> XmlRead<'__input> for TableProperty<'a>
impl<'__input: 'a, 'a> XmlRead<'__input> for TableProperty<'a>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more