Struct docx_rust::formatting::ParagraphProperty
source · [−]pub struct ParagraphProperty<'a> {
pub style_id: Option<ParagraphStyleId<'a>>,
pub widow_control: Option<WidowControl>,
pub border: Option<Borders<'a>>,
pub justification: Option<Justification>,
pub numbering: Option<NumberingProperty>,
pub spacing: Option<Spacing>,
pub indent: Option<Indent>,
}
Expand description
Paragraph Property
use docx::formatting::{ParagraphProperty, JustificationVal};
let prop = ParagraphProperty::default()
.style_id("foo")
.justification(JustificationVal::Start)
.numbering((10usize, 20usize));
Fields
style_id: Option<ParagraphStyleId<'a>>
Specifies the style ID of the paragraph style.
widow_control: Option<WidowControl>
Specifies whether enable widow control
border: Option<Borders<'a>>
Specifies borders for the paragraph.
justification: Option<Justification>
Specifies the paragraph alignment.
numbering: Option<NumberingProperty>
Specifies that the paragraph should be numbered.
spacing: Option<Spacing>
Specifies the spacing
indent: Option<Indent>
Specifies the paragraph indent
Implementations
sourceimpl<'a> ParagraphProperty<'a>
impl<'a> ParagraphProperty<'a>
pub fn style_id<T: Into<ParagraphStyleId<'a>>>(self, value: T) -> Self
pub fn justification<T: Into<Justification>>(self, value: T) -> Self
pub fn border<T: Into<Borders<'a>>>(self, value: T) -> Self
pub fn numbering<T: Into<NumberingProperty>>(self, value: T) -> Self
pub fn spacing<T: Into<Spacing>>(self, value: T) -> Self
pub fn indent<T: Into<Indent>>(self, value: T) -> Self
Trait Implementations
sourceimpl<'a> Clone for ParagraphProperty<'a>
impl<'a> Clone for ParagraphProperty<'a>
sourcefn clone(&self) -> ParagraphProperty<'a>
fn clone(&self) -> ParagraphProperty<'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 ParagraphProperty<'a>
impl<'a> Debug for ParagraphProperty<'a>
sourceimpl<'a> Default for ParagraphProperty<'a>
impl<'a> Default for ParagraphProperty<'a>
sourcefn default() -> ParagraphProperty<'a>
fn default() -> ParagraphProperty<'a>
Returns the “default value” for a type. Read more
sourceimpl<'__input: 'a, 'a> XmlRead<'__input> for ParagraphProperty<'a>
impl<'__input: 'a, 'a> XmlRead<'__input> for ParagraphProperty<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for ParagraphProperty<'a>
impl<'a> Send for ParagraphProperty<'a>
impl<'a> Sync for ParagraphProperty<'a>
impl<'a> Unpin for ParagraphProperty<'a>
impl<'a> UnwindSafe for ParagraphProperty<'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